-
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
Ways with different surface
tag variants counted twice in track statistics
#494
Comments
That's on me I guess ;-) I'll try to fix it ASAP (if that's possible at all: it's unclear which of the both tags should be counted). |
If you've got a brouter backend with Prefering any specialized variant should likely be fine unless Personally I'd lean towards prefering any specialized variant (and falling back to plain e.g. |
I think we can safely assume that the majority of BRouter-web users utilize it to plan cycling routes ;-) So I'm with you and think it's ok to prefer the specialized |
FYI, I've implemented a fix. I'll wait with the pull request until the branches for #68 are merged. The commit which fixes this bug can be found here: mjaschen@5d75823 |
If a way segment contains more than one `surface` tags (e.g. `surface=*` and `cycleway:surface=*`), the tag best suited for the current routing type (currently only *cycling* is supported) is selected. i.e. if a `cycleway:surface=` tag belongs to the current way segment it will be used for the analysis exclusively (all other `surface` tags are skipped from now on).
Could you please make a PR now, planning a release in the coming week. |
If a way segment contains more than one `surface` tags (e.g. `surface=*` and `cycleway:surface=*`), the tag best suited for the current routing type (currently only *cycling* is supported) is selected. i.e. if a `cycleway:surface=` tag belongs to the current way segment it will be used for the analysis exclusively (all other `surface` tags are skipped from now on).
If a way segment contains more than one `surface` tags (e.g. `surface=*` and `cycleway:surface=*`), the tag best suited for the current routing type (currently only *cycling* is supported) is selected. i.e. if a `cycleway:surface=` tag belongs to the current way segment it will be used for the analysis exclusively (all other `surface` tags are skipped from now on).
This commit fixes the incomplete/buggy implementation of the fix for nrenner#494. Values are now converted to the expected format before returned from `wayTagsNormalize()`.
* upstream/master: (112 commits) release: 0.17.0 Update changelog for 0.17.0 Update translations Fix RoutingOptions test for CI Fix default profile not selected with hash Add profile selection tests for RoutingOptions Update dependency eslint to v8.17.0 (nrenner#551) Fix for incomplete/buggy solution for nrenner#494 (nrenner#553) Adapt standalone build to new brouter docs path Disable preloading states to reduce traffic on start Update dependency del to v6.1.1 (nrenner#549) Update dependency eslint to v8.16.0 (nrenner#547) Update babel monorepo to v7.18.2 (nrenner#545) fix for nrenner#494 (nrenner#550) Work around iOS 3rd party browser download (nrenner#418) Refactor download Allow empty name with client-side formatting (nrenner#454) Rename hiking-beta profile to hiking-mountain Adopt standalone task to brouter gradle build Update overpass-layer ...
Fixed in #550 |
With #460 brouter-web now supports ways with a
cycleway:surface
tag. However, if a way has both asurface
and acycleway:surface
tag (and brouter is invoked withprocessUnusedTags
so both are returned), ... then brouter-web counts this way twice in the track statistics:Example: https://bikerouter.de/#map=19/49.79318/9.94119/osm-mapnik-german_style&lonlats=9.940186,49.793385;9.942198,49.792959
The text was updated successfully, but these errors were encountered: