Hi,
I’m new here and wanted to ask about a weird route I came across while routing to an small island in Finland.
As far as I know there isn’t a valid car route to the destination, but the route insist on taking a ferry without a car option. I’d preferably receive an error rather than a weird route like this, any insight on this behaviour?
The route in question:
the ferry way feature:
The default access is allowed for car if not explicitly tagged for other modes or explicitly restricted:
public EncodingManager.Access getAccess(ReaderWay way) {
// TODO: Ferries have conditionals, like opening hours or are closed during some time in the year
String highwayValue = way.getTag("highway");
String firstValue = way.getFirstPriorityTag(restrictions);
if (highwayValue == null) {
if (way.hasTag("route", ferries)) {
if (restrictedValues.contains(firstValue))
return EncodingManager.Access.CAN_SKIP;
if (intendedValues.contains(firstValue) ||
// implied default is allowed only if foot and bicycle is not specified:
firstValue.isEmpty() && !way.hasTag("foot") && !way.hasTag("bicycle"))
return EncodingManager.Access.FERRY;
}
return EncodingManager.Access.CAN_SKIP;
}
if ("track".equals(highwayValue) && trackTypeSpeedMap.get(way.getTag("tracktype")) == null)
return EncodingManager.Access.CAN_SKIP;
if (!defaultSpeedMap.containsKey(highwayValue))
return EncodingManager.Access.CAN_SKIP;
Related: https://github.com/graphhopper/graphhopper/issues/1051
system
Closed
May 9, 2022, 2:23pm
3
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.