city-roads
city-roads copied to clipboard
Filter out highway=proposed and other non-roads?
Hi, I found your visualization very addictive. I shared it on FB and someone noticed it also includes roads that don't exist (yet) - highway=proposed
.
I think the best solution would be to explicitly filter for known highway types meant for cars. Like:
way[highway~"^(((motorway|trunk|primary|secondary|tertiary)(_link)?)|unclassified|residential|living_street|service|track)$"]
Debuggex diagram here
That would also filter out bus stops mapped as areas (some people map them like that) - ways with highway=bus_stop area=yes
.
Hi Rico, I like this a lot. It gives smaller responses, and it seems faster. I'm updating the cache now, and will migrate to this once cache is done.
Here is a visual difference. On the left you see Seattle with proposed regex. On the right is original drawing (without highway filters). Which one do you like better?
I think the left looks more clean, in line with the minimalist style. For many cities, there'd be less spots from partially mapped sidewalks as well. I forgot about highway=pedestrian, which is as wide as a normal street and can be sometimes used by cars. You may also want to filter out area=yes (I'm unsure about performance impact of it).
way[highway~"^(((motorway|trunk|primary|secondary|tertiary)(_link)?)|unclassified|residential|living_street|pedestrian|service|track)$"][area!=yes]
But if you filter out footways or cycleways it could mean to loose a lot of ways inside a city. Think of huge parks or the bicycle roads that are built in more and more cities. I think this could lead to a lot empty spots in some cities.