openrouteservice
openrouteservice copied to clipboard
Car is routed along railway tracks to Sylt
Try this: https://maps.openrouteservice.org/directions?n1=54.83807&n2=8.747177&n3=11&a=54.789403,8.838158,54.904251,8.304977&b=0&c=0&k1=en-US&k2=km
The route takes you via a shuttle train. There are no roads on that connecting bit. Apparently the shuttle does take cars, but (as with the normal ferries), the times and speeds are unknown. Our code just returns ab out one hour, which is useless info. This is due to
protected AbstractFlagEncoder(int speedBits, double speedFactor, int maxTurnCosts) {
this.maxTurnCosts = maxTurnCosts <= 0 ? 0 : maxTurnCosts;
this.speedBits = speedBits;
this.speedFactor = speedFactor;
oneways.add("yes");
oneways.add("true");
oneways.add("1");
oneways.add("-1");
ferries.add("shuttle_train");
ferries.add("ferry");
}
This should be taken out or speeds and times for the shuttle have to be taken into account.
the times and speeds are unknown.
In fact, in the case of the Sylt-Shuttle there is as duration: 35
tag which is being used by GH to compute the avg travel speed of the corresponding edges. The other tag maxspeed: 80
is not being considered in this case.
Our code just returns ab out one hour, which is useless info.
Actually, the returned travel time of 52min matches quite good to the 45min reported by the official timetable. But sure, this might be overly optimistic as it kind of assumes that you arrive just in time to hop on the train.