GraphHopper.com | Forum | GitHub | Maps | Blog

Cant route over ferry bicycle/foot=designated


#1

Hi,

I think I found a problem with the routing, but I would like to verify this :slight_smile:

See: https://www.openstreetmap.org/way/164231365
When you routeover this by bike or foot it wont route over the ferry, the ferry tags look fine to me. When I look in the graphhopper code for foot/bicycle-flagencoder https://github.com/graphhopper/graphhopper/blob/0.11/core/src/main/java/com/graphhopper/routing/util/BikeCommonFlagEncoder.java#L239 , the flagencoder will check the bicycle tag if its “yes”, but in this case the bicycle tag is designated which looks like a valid value in the osm wiki.

So it looks like the BikeFlagEncoder should also check if the value is “designated” (or even better; intendedValues). The same for the FootFlagEncoder.

If this is correct I would like to create a pullrequest to fix this problem.

Thanks for reading.

Regards, Steven


#2

Thanks! This is highly likely a bug - please create an issue and link this discussion :slight_smile:


#3

created issue: https://github.com/graphhopper/graphhopper/issues/1562