city-roads icon indicating copy to clipboard operation
city-roads copied to clipboard

Filter out highway=proposed and other non-roads?

Open RicoElectrico opened this issue 5 years ago • 4 comments

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.

RicoElectrico avatar Jan 26 '20 17:01 RicoElectrico

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.

anvaka avatar Jan 28 '20 07:01 anvaka

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?

image

anvaka avatar Jan 29 '20 05:01 anvaka

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]

RicoElectrico avatar Jan 29 '20 22:01 RicoElectrico

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.

patzi avatar Jan 31 '20 09:01 patzi