If routes start or end in multi-level stations, GraphHopper selects the closest edge. This can lead to wrong results.
Karlsruhe Durlacher Tor–Karlsruhe Europaplatz (routed via Gerwigstraße) vs Karlsruhe Durlacher Tor (U)–Karlsruhe Europaplatz (routed via direct tunnel)
Expected route:
Route with slightly different start location (about 3 m offset):
This issue exists for map matching as well if the request contains one point per stop only.
It cannot solved because the locations for stops provided by transport authorities are often of low precision, do not distinguish between multiple tracks/platform or OSM can be inaccurate (especially underground stations).
Possible solutions:
- Allow to specify a value of
layer=* or level=* for snapping for each individual point of a route request.
- Currently snapping onto tunnels or bridges can be forbidden by
snap_preventions. Snap preventions could be extended to specify preventions per point and by the "road_environment" default (no-tunnel-no-bridge-no-ferry edges).
If routes start or end in multi-level stations, GraphHopper selects the closest edge. This can lead to wrong results.
Karlsruhe Durlacher Tor–Karlsruhe Europaplatz (routed via Gerwigstraße) vs Karlsruhe Durlacher Tor (U)–Karlsruhe Europaplatz (routed via direct tunnel)
Expected route:
Route with slightly different start location (about 3 m offset):
This issue exists for map matching as well if the request contains one point per stop only.
It cannot solved because the locations for stops provided by transport authorities are often of low precision, do not distinguish between multiple tracks/platform or OSM can be inaccurate (especially underground stations).
Possible solutions:
layer=*orlevel=*for snapping for each individual point of a route request.snap_preventions. Snap preventions could be extended to specify preventions per point and by the "road_environment"default(no-tunnel-no-bridge-no-ferry edges).