-
Notifications
You must be signed in to change notification settings - Fork 73
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
Use cycleway:surface for surface statistics #438
Comments
The `surface` tag exists in different variants, e.g. `surface`, `cycleway:surface` etc. Previously, the `surface` and `smoothness` tags were only processed for route analysis if they were found in their canonical form in the BRouter server response. With this commit, the variants are normalized down to the main tag name which has the effect that they're included in the route analysis. Fixes nrenner#438
If anyone is interested in testing the fix – I pushed it to bikerouter.de: Example: https://bikerouter.de/#map=17/50.13421/8.69459/standard&lonlats=8.696172,50.135486;8.694914,50.13251 |
Looks awesome, thanks a lot! Tested a few more bicycle tracks (different tagging styles), all worked as expected. |
The `surface` tag exists in different variants, e.g. `surface`, `cycleway:surface` etc. Previously, the `surface` and `smoothness` tags were only processed for route analysis if they were found in their canonical form in the BRouter server response. With this commit, the variants are normalized down to the main tag name which has the effect that they're included in the route analysis. Fixes nrenner#438
This isn't correctly fixed. OSM Wiki suggests tagging like:
I think it's bad advice (you won't find a square centimeter with 'paved' in the terrain, all is either asphalt or paving stones, there aren't 3 types of surface). But unfortunately people tag this way, so routing should support it. Today, BRouter says cycling along such a way is 100% paved (example). But it should say it's 100% asphalt. The code from 9ca93e4 is unclear in ordering of tags, so I don't know if the order is random, or something else sorts tags. |
According to
It does if you turn on "processUnusedTags" in the "Customize profile" sidebar, or use https://bikerouter.de where this is checked by default. In the "Data" sidebar, you'll be able to see the difference. Only looking at upstream OSM tags (e.g. here) can be misleading. Changing the profile to evaluate the tag like this triggers the correct behaviour too, of course: - assign ispaved = surface=paved|asphalt|concrete|paving_stones|sett
+ assign ispaved = or surface=paved|asphalt|concrete|paving_stones|sett cycleway:surface=asphalt I'd say not considering |
Here is an example:
where the current aliasing method does not produce the correct result even if |
Since cycleway:surface and footway:surface are getting more and more popular and are already supported by BRouter (see abrensch/brouter#131 for details) it would be nice to use these tags for calculating the surface statistics.
Example: https://brouter.de/brouter-web/#map=17/50.13421/8.69458/standard&lonlats=8.696172,50.135486;8.694914,50.13251
Both footway and cycleway got a surface-tag (see https://www.openstreetmap.org/way/849709593) and if you use a profile which uses these tags it will show up at the data details tab - but it's counted as "Unknown" at the "Analyse route" tab:
This just got me because I wondered why there are so many "Unknown" surfaces at some routes 😃
The text was updated successfully, but these errors were encountered: