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 incline on roads #4180

Closed
j47996 opened this issue Jul 8, 2020 · 9 comments
Closed

Render incline on roads #4180

j47996 opened this issue Jul 8, 2020 · 9 comments
Labels
declined new features Requests to render new features roads

Comments

@j47996
Copy link

j47996 commented Jul 8, 2020

Ordnance Survey (UK) maps mark inclines with a chevron pointing uphill for 14% - 20%, double for 20% +

@polarbearing
Copy link
Contributor

Can you explain how that is mapped, how often, and how the percentage is measured in OSM?

@HolgerJeromin
Copy link
Contributor

@jeisenbe
Copy link
Collaborator

jeisenbe commented Jul 8, 2020

The key "incline=*" has been used 600k times, but 80% are the value "up" or "down", which does not specify how steep of an incline is involved.

The next most common value is "0%" with 22k uses, followed by "10%" with 12k uses, "15%" with 6k and "20%" with 4k. There are about 50k which have a non-zero numerical value with a %: https://taginfo.openstreetmap.org/keys/incline#values

Of those with incline=10%, there are 4897 ways with highway=path, =footway, =cycleway, =steps or =bridleway: https://overpass-turbo.eu/s/VVY - so over 1/3rd are types of paths: https://overpass-turbo.eu/s/VVZ

And there are 4135 highway=track with incline=10% - which are also rendered in a similar manner, in this style (https://overpass-turbo.eu/s/VW0).

So if we focused on paths and tracks, we might find 30k or more features which could have a rendering based on incline >9% (or perhaps >6%?).

Would that be worth considering?

@mboeringa
Copy link

mboeringa commented Jul 9, 2020

So if we focused on paths and tracks, we might find 30k or more features which could have a rendering based on incline >9% (or perhaps >6%?).

Nice analysis, but I think it is not logical to focus on paths and tracks. A lot of paths in mountain regions will have incline >10% and are only accessible on foot, which everyone knows and is therefor largely non-information.

This information is most useful for roads accessible by car, to know if e.g. a heavily loaded truck will encounter a non passible road with an incline to steep to take.

So instead of paths and tracks, I would suggest to render this stuff on roads of type "unclassified" up to "primary" or possibly "trunk" (motorway should always be accessible to any type of motorized vehicle, so rendering it there isn't useful).

@jragusa
Copy link
Contributor

jragusa commented Jul 9, 2020

I'm following @mboeringa to render them only on roads where you can found dedicated traffic signs in several European countries (for example: https://fr.wikipedia.org/wiki/Panneau_de_signalisation_de_descente_dangereuse_en_France#/media/Fichier:France_road_sign_A16.svg).

At least in France and Switzerland, these traffic signs are present when slope exceeds 10% (4% for motorways and trunks in France) and possibly less in Germany.

@j47996
Copy link
Author

j47996 commented Jul 9, 2020

Just roads would suit me.

@jeisenbe
Copy link
Collaborator

jeisenbe commented Jul 9, 2020

Looking at highway=motorway/trunk/primary/secondary/tertiary/unclassified/residential, there are 2691 features with incline=10%, and there are 495 highway=service with this value: so this information is more common on paths and tracks.

There might be 15k or 20k roads (excluding tracks) with incline >= 10% - is that common enough to be worth rendering?

As a bike rider I'm much more interested in the incline of roads compared to when I'm driving a car. If one is driving a HGV or bus you would want to avoid roads with steep inclines, but in personal motor vehicles it is not so significant.

@jeisenbe jeisenbe added new features Requests to render new features roads labels Jul 9, 2020
@polarbearing
Copy link
Contributor

polarbearing commented Jul 9, 2020

The last argument by @jeisenbe is an important point: we are a general interest map, and should not focus on one particular traffic class. There are other maps and routers that do that.
Cyclemap already renders contour lines (from a different source), routers can avoid roads which are unsuitable for a particular vehicle type.
If we'd start rendering incline, we would also need to render maxheight and maxwidth, which are even more critical to decide if a road is passable.
We should focus on general-interest symbols on roads, such as access and surface.
Proposing to decline.

@imagico
Copy link
Collaborator

imagico commented Jul 10, 2020

We have had the discussion on if it is even possible to render both road surface type and access restriction at the same time in this style (#3399/ #4137). Adding yet another subclassification of roads seems out of the question.

Therefore closing this as very unlikely to gather sufficient support or a viable styling idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
declined new features Requests to render new features roads
Projects
None yet
Development

No branches or pull requests

7 participants