Skip to content

Commit

Permalink
Exclude charging station ways
Browse files Browse the repository at this point in the history
because
1. the tag is documented as nodes only
2. there aren't many ways with the tag
3. the charging station operator quest also does it
  • Loading branch information
FloEdelmann authored Jul 5, 2021
1 parent 267ee3b commit 0cb8b43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import de.westnordost.streetcomplete.quests.getNameOrBrandOrOperatorOrRef
class AddChargingStationCapacity : OsmFilterQuestType<Int>() {

override val elementFilter = """
nodes, ways with
nodes with
amenity = charging_station
and !capacity
and bicycle != yes and scooter != yes and motorcar != no
Expand Down

9 comments on commit 0cb8b43

@westnordost
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somewhere (in the wiki?) I saw a picture of a charging station that was larger, i.e. looked like a petrol station, probably this is why I included ways.

Also, question is, should the charging station considered to be just the pillar with the sockets or the pillar + the space where the cars should park while being loaded.
Since obviously, the mentioned space is blocked for anything else (f.e. can not be used as a parking space), it would make sense if it was the latter. And since we already started to micromap parking lots that consist of just a few (or less) parking spaces, and since we map bicycle and motorcycle parking also as areas, I think it cannot be considered wrong to map these charging stations as areas.

@westnordost
Copy link
Member

@westnordost westnordost commented on 0cb8b43 Jul 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, looking at duckduckgo image search, it does look like multi-pillar car charging stations are all but uncommon:
https://duckduckgo.com/?t=ffab&q=car+charging+station&iax=images&ia=images&iai=https%3A%2F%2Felectrek.co%2Fwp-content%2Fuploads%2Fsites%2F3%2F2017%2F12%2Fultra-e.jpg%3Fquality%3D82%26strip%3Dall

Such places are big enough to warrant area-mapping even for non-micromapping fans.

@FloEdelmann
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with including ways, but then it should be consistent in both the capacity and the operator quests.

@westnordost
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, let's do that then

@FloEdelmann
Copy link
Member Author

@FloEdelmann FloEdelmann commented on 0cb8b43 Jul 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still, 318 ways vs 52k nodes is maybe not worth searching for: https://taginfo.openstreetmap.org/tags/amenity=charging_station#overview

@westnordost
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean, not worth searching for? We are downloading everything anyway, we are not using overpass anymore

@westnordost
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

98661de

I also added a talk topic in the wiki regarding this https://wiki.openstreetmap.org/wiki/Talk:Tag:amenity%3Dcharging_station#on_areas.3F and am subscribed to the wiki page in case there are answers.

@FloEdelmann
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not worth searching for

Well, filtering takes a little less time if it's fewer items to search through. That's probably negligible though.

@westnordost
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'd also say it is negligible. What may make a little difference would be (a utility function) that makes filtering the mapData ( mapData.ways.filter { filter.matches(it) }) not iterate through the whole mapData if the filter f.e. only includes ways, relations. I.e. put the performance improvement that can be seen in OsmFilterQuestType into an (extension) function for MapData.

Please sign in to comment.