Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render sidewalk=* tag #2568

Open
morray opened this issue Feb 11, 2017 · 30 comments
Open

Render sidewalk=* tag #2568

morray opened this issue Feb 11, 2017 · 30 comments
Labels
Milestone

Comments

@morray
Copy link

morray commented Feb 11, 2017

As most sidewalks are unfortunately only tagged on highways and not as a separate way openstreetmap is very car-centric. Thus, I propose to find a solution to render sidewealks, which are only tagged on other highways.

Ideas to achieve this would be:
*Wider rendering with shaded borders
*Just add thick borders

Keys to be rendered would be:
http://wiki.openstreetmap.org/wiki/Key:sidewalk

~1Million uses

@jojo4u
Copy link

jojo4u commented Feb 11, 2017

In my view this is a proposal worth discussing.

@SomeoneElseOSM
Copy link
Contributor

@morray , if you're looking to try and develop something to do this, you might find some of the stuff at http://www.openstreetmap.org/user/SomeoneElse/diary/38136 helpful (including a potential way to do "sidewalks just on one side").

@morray
Copy link
Author

morray commented Feb 11, 2017

@SomeoneElseOSM thanks.
I personally think the hardest thing for achieving this is come up with an intuitive representation which does not clutter the map. Also the question is open which zoomlevel is best to start rendering them.

@pnorman
Copy link
Collaborator

pnorman commented Feb 12, 2017

Related: #1998

@d1g
Copy link

d1g commented Mar 8, 2017

@jojo4u, my personal view is to create a separate object hw=footway for every street wider than 10-15m. Given time, I would draw chunks of grass as separate objects: https://taginfo.openstreetmap.org/compare/sidewalk/highway=footway

I use pedestrian/bicycle features a lot and I don't want to use Google-like maps anymore (without hw=footway as separate way) and default fills instead of chunks of grass.

@micahcochran
Copy link
Contributor

@morray How about rendering road with a border that uses the current cartographic dashed line for a sidewalk (or footway)? If it is only one one side only that side should be rendered this way.

Perhaps this could be rendered from zoomlevels 17 to 19.

That rendering would be relatively unobtrusive and not too cluttered.

The only clutter that I could forsee would be if there is sidewalk tagging on the road and a digitized highway=footway beside it.

@pnorman
Copy link
Collaborator

pnorman commented Mar 9, 2017

@morray How about rendering road with a border that uses the current cartographic dashed line for a sidewalk (or footway)? If it is only one one side only that side should be rendered this way.

Perhaps this could be rendered from zoomlevels 17 to 19.

That rendering would be relatively unobtrusive and not too cluttered.

Could you show a demo? I'm having a hard time deciding if I think this would work well or not. It will, of course, have issues that need ironing out, particularly at bridges, but an idea of how it looks would be good.

The only clutter that I could forsee would be if there is sidewalk tagging on the road and a digitized highway=footway beside it

That would be a data error indicating duplicate footways, so I'm okay with duplicates in the rendering.

@utack
Copy link

utack commented Mar 10, 2017

This would also encourage people to use the sidewalk tags where possible instead of the complicated extra footways
Definitely a good idea

@micahcochran
Copy link
Contributor

@morray How about rendering road with a border that uses the current cartographic dashed line for a sidewalk (or footway)? If it is only one one side only that side should be rendered this way.

Perhaps this could be rendered from zoomlevels 17 to 19.

That rendering would be relatively unobtrusive and not too cluttered.
Could you show a demo? I'm having a hard time deciding if I think this would work well or not. It will, of course, have issues that need ironing out, particularly at bridges, but an idea of how it looks would be good.

After your comment, I looked at that a little bit. I quickly figured out that it will be pretty complicated. I'm not too sure if Mapnik can do that. My Mapnik skill is non-existent.

@SomeoneElseOSM
Copy link
Contributor

@micahcochran On the "can Mapnik do it or not" question, it's a lot easier if you use a lua tag transform to split based on sidewalk before trying to render. That way you do have "more types of roads" (e.g. "tertiary_sidewalk" as well as "tertiary") but it makes the rendering code a lot easier to understand.

An example rendering of just GB using an extra-wide casing to indicate sidewalks on some roads is at https://map.atownsend.org.uk/maps/map/map.html#zoom=14&lat=53.04735&lon=-1.42934 . If you wanted to try a different representation, you could keep the same tag transform script and just tinker with the rendering.

@morray
Copy link
Author

morray commented Mar 15, 2017

@utack actually personally I hope it goes the other way in the long run and all sidewalks are individually in the data. But let's not start this discussion here ;-)

@nebulon42 nebulon42 added this to the New features milestone Mar 22, 2017
@matkoniecz
Copy link
Contributor

matkoniecz commented Aug 21, 2017

It is basically the same as #827

Note that there is no documented tag to define distance of footway from center of road when sidewalk tag is used.

I see three solutions, each with serious drawbacks

  • guess where footways are and draw them like highway=footway/path. In areas where both sidewalk tags and footways as independent ways are used map will not make sense - in places where tagging changes from sidewalk tag to separate geometry footways will be disjointed with huge incentive given to tagging for renderer. Also, such footways are doomed to end where trees/lakes/roads/POIs/etc are (correctly) placed.
  • special style to show sidewalks, different than how highway=footway/path are rendered - this map style is already extremely complicated with massive amount of different stylings and footways already have two completely different styles
  • change nothing and close this issue as declined (I recommend doing this, but as I already closed Render cycleway=track #827 I will not do it here)

@matkoniecz
Copy link
Contributor

The only clutter that I could forsee would be if there is sidewalk tagging on the road and a digitized highway=footway beside it.

AFAIK this is an invalid tagging and terrible rendering in such cases is not a problem.

@matkoniecz
Copy link
Contributor

This would also encourage people to use the sidewalk tags where possible instead of the complicated extra footways

And I would dislike it for the same reason, as I prefer separate highway=footway (but both are valid tagging methods with good and bad sides, so it is mostly matter of taste and what one is typically doing with data).

@dieterdreist
Copy link

dieterdreist commented Aug 22, 2017 via email

@kocio-pl
Copy link
Collaborator

I also think this tagging makes sense, just like lit=*, even if there are street lamps around.

@matkoniecz
Copy link
Contributor

matkoniecz commented Aug 22, 2017

I am not sure it is invalid tagging:

Without consensus that it is invalid tagging (what should be discussed on wiki/tagging mailing list so I will not comment here further on this topic) rendering sidewalk=both/left/right is even more hopeless.

@SomeoneElseOSM
Copy link
Contributor

To be clear, the established tagging for "this road has a sidewalk but it is mapped separately" is "sidewalk=separate". "sidewalk=both/left/right" are typically used when sidewalk is not separately mapped.

@matkoniecz
Copy link
Contributor

To be clear, the established tagging for "this road has a sidewalk but it is mapped separately" is "sidewalk=separate". "sidewalk=both/left/right" are typically used when sidewalk is not separately mapped.

I attempted to document this at https://wiki.openstreetmap.org/wiki/Key:sidewalk and https://wiki.openstreetmap.org/wiki/Sidewalks#Sidewalk_as_separate_way

@dieterdreist
Copy link

dieterdreist commented Aug 22, 2017 via email

@SomeoneElseOSM
Copy link
Contributor

SomeoneElseOSM commented Aug 23, 2017

interesting, what is established tagging for a road when only one sidewalk is mapped explicitly but the road has them on both sides?

Er, "fixme"? :)
More seriously, "separate" doesn't say anything about where the sidewalk is or how many of them there are. It's just a hint that there is one, somewhere.

(edit) and since a picture is sometimes worth a thousand words, here's an example.

@dieterdreist
Copy link

dieterdreist commented Aug 23, 2017 via email

@SomeoneElseOSM
Copy link
Contributor

@dieterdreist you can't expect to "force mappers to decide whether you give information" about anything. I know that some denizens of the tagging list and the wiki think that, but frankly the evidence is not on their side...
@morray you raised this issue in the first place - do you need any help putting a demo of something together?

@dieterdreist
Copy link

dieterdreist commented Aug 23, 2017 via email

@ujos
Copy link

ujos commented Sep 18, 2017

One more reason to implement sidewalks rendering is to eliminate cases when both sidewalk and separate hw=footway are added.

@matkoniecz matkoniecz changed the title Render sidewalks Render sidewalk=* tag May 9, 2018
@dktue
Copy link

dktue commented Aug 23, 2018

I guess rendering sidewalks would motivate the mapper-community to tagging sidewalks in an incredible manner.

If you look at overpass you will see that it is rarely tagged for entire, contiguous areas but sparsely distributed.

This is probably not only a feature that will improve for the users of the map but also bring data to OSM that can be used for pedestrian routers for example.

@SomeoneElseOSM
Copy link
Contributor

@dktue I map (and render) sidewalks because it's incredibly useful information, especially outside urban areas. It's certainly possible to do - it just needs someone to spend the time doing it. If you'd like to try it yourself please do - and ask whenever you get stuck (even if the first question is "how do I start?"). Here is an example of the sort of thing that's possible - you can easily see which of the secondary, tertiary and unclassified roads are safe to walk down because there's a sidewalk and which are not (click "controls" at the top left to turn on the layer switcher to compare with OSM Carto).

@dktue
Copy link

dktue commented Aug 23, 2018

Maybe it's easier to find a good rendering-idea if we concentrate solely to z19 in first place. This way we could encourage mappers to add the data and then experiment with z18, z17, etc. when we have way more data in place.

@RAytoun
Copy link

RAytoun commented Aug 23, 2018

I have been experimenting in my home area with sidewalks in a residential area where I am able to indicate places to cross where there is a ramp/dropped curb to allow for wheelchairs/prams. It also shows how the varies footways link with the sidewalks rather than directly onto the road. It is important for pedestrians with young children to know that there is a sidewalk at the end of the footway rather than straight onto the road. You can see the example here

@hungerburg
Copy link

Mapping sidewalks is going strong, and there is still lots to go. Especially adding sidewalk properties to streets, the heart of this issue, has recently seen an up-tick in densely mapped metropolitan areas, not only in Western Europe but also in South America and in Asia. I used ohsome to gather some stats on this. As sidewalks (not the ones of the footway kind) are not shown in OSM Carto, it is even more astonishing, that there exists such a hidden treasure trove of information about on the ground features.

As the property is very useful for pedestrian routers that long since make use of it, for the visually impaired or plain normal people just as well, these ongoing efforts should be rewarded by visual feedback, which in turn will help spotting places, that can be enhanced.

The appearance of sidewalks on https://map.atownsend.org.uk/maps/map/map.html, when zoomed in, is very nice and would make a good starting point for OSM Carto to follow suit and have mappers in countries other than England provide an unobtrusive, but nevertheless concise rendering of their labour of love.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests