Skip to content

Proposal: Routing on Area Features #3570

Closed

Description

@kevinkreiser

The tag of highway=platform and its support in valhalla came up in a discussion where the comments eventually focused on tagging conventions and the ability for the router to traverse area features. From that discussion an idea for a proposal was suggested: #3565 (reply in thread)

The basic gist of the proposal is:

  1. parse area features like parks etc that would seem like good candidates for which to provide routing
    1. this may mean checking if the area already intersects traversable ways (ie its already mapped)
    2. it may also mean checking if any routable ways are near by
  2. create an internal network for the polygon using either its boundary or perhaps the medial axis
  3. if the boundary is connected to the road network use it otherwise find connection points like we do with transit imports

This issue is just a place holder until more time exists to think about how to implement something like this. It should also be noted that this is more of a problem for OSM than any commercial dataset, but it could be argued that such a feature would enable routing (especially indoors or within other enclosed areas) where it wouldnt be possible even with commercial datasets.

Activity

  1. slvlirnoff commented on Mar 18, 2022

    @slvlirnoff
    Contributor

    Yes it's a super interesting features, especially for complexes areas, like square with fountains, path, places or big railway stations.

    One naïve approach could also be to find all intersection of the area with street network, and connect these two by two if visible (i.e. not stepping outside the polygon).
    This would work rather well on convex polygon but fails for more complex shapes or multi-polygon with holes.

    A look at how OpenTripPlanner is handling these cases could be interesting, I know they have a good areaVisibility feature now that works quite well for transit. I'm not sure what OSRM, GraphHopper, etc are doing in this area?

    Also OSM tend to rather discourage adding additional street segment within areas and encourage implementation of this feature. Adding additional data in OSM for sake of routing is usually not the right approach.

    Relevant issue with lot's of information
    osmlab/osm-planning#17

    Also
    #42

    Also quick solution as preprocessing step (but I've never tried it)
    https://github.com/PlazaRoute/plazaroute

  2. jthiard commented on Jun 4, 2025

    @jthiard
    Contributor

    There is a recent PR for OSRM, using a visibility graph + dijkstra (to reduce the number of generated edges).

    Project-OSRM/osrm-backend#7161

  3. kevinkreiser commented on Jun 4, 2025

    @kevinkreiser
    MemberAuthor

    @jthiard thanks for the heads up, like dennis was saying about osrm, we wanted to do something like that for a long time but never found the time! very nice work from that contributor over there!

  4. nilsnolde commented on Jun 5, 2025

    @nilsnolde
    Member

    Wow, did they really implement to respect building footprints in the visibility graph? That's crazy:) I figured that'd be insanely slow, then I might retract my comment here, #5184 (comment).

  5. jthiard commented on Jun 5, 2025

    @jthiard
    Contributor

    I suppose building footprints inside the area are respected only if they are inner rings of the pedestrian area ?
    Which suppose tagging the area as a "multipolygon" relation.

  6. nilsnolde commented on Jun 5, 2025

    @nilsnolde
    Member

    Ah yeah that makes sense!

  7. chrstnbwnkl commented on Aug 17, 2026

    @chrstnbwnkl
    Member

    This can now be closed after #6195 has landed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions