You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue RoadClassEncoder via EncodedValueLookup when using mtb and motorway #1843
If I lookup an encoded value in InstructionsFromEdges via evLookup.getEnumEncodedValue(RoadClass.KEY, RoadClass.class); I get an EncodedValue as expected.
For motorways this seems returns "other" instead of "motorway". Other road classes seem to be fine. If I only use car it works fine.
I cross tested with graph.flag_encoders: car, bike and this particular issue did not exist. I don't think it's necessarily related to the EncodedValueLookup, but that's how I discovered this.
Activity
karussell commentedon Dec 31, 2019
Uh, this looks ugly. Thanks for the report.
btw: this is no longer necessary:
graph.bytes_for_flags: 8update: can reproduce this in OSMReaderTest.testRoadClassInfo via adding MountainBikeFlagEncoder
fixes #1843
boldtrn commentedon Jan 2, 2020
Thanks for the fast fix 🎉.
Thanks, I missed that change!
avoid skipping ways if mixing encoders in OSMRoadClassParser (#1845)