Skip to content

Allow to specify level or layer for snapping #45

@Nakaner

Description

@Nakaner

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:

screenshot of routing.openrailrouting.org

Route with slightly different start location (about 3 m offset):

screenshot of routing.openrailrouting.orge

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions