Skip to content

Take entrances into account for routing start and end points#7017

Open
lonvia wants to merge 1 commit intoopenstreetmap:masterfrom
lonvia:entrances-for-routing
Open

Take entrances into account for routing start and end points#7017
lonvia wants to merge 1 commit intoopenstreetmap:masterfrom
lonvia:entrances-for-routing

Conversation

@lonvia
Copy link
Copy Markdown
Contributor

@lonvia lonvia commented Apr 20, 2026

Description

Nominatim has been able for a while to return entrances of buildings and similiar way area features. This PR introduces entrance-awareness to the router UI: when searching for a place for the routing start and end points, it requests entrances from Nominatim. If suitable entrances (main or yes) come back, their location will be used for routing instead of the centroid of the feature.

I've kept the implementation fairly simple for now. Nominatim returns the full set of tags for each entrance. So one could do something much more elaborate by looking into level and access tags. For example, it would be nice to choose the right entrance for the choose mode of transportation. Right now I consider this just a starting point for creating a positive feedback loop between improved entrance tagging and the OSM UI.

Warning: the Nominatim servers currently only have entrances edited in the last six months but a reimport for all servers is imminent. If you want to test this locally, use poldi which is newly imported.

How has this been tested?

Here is what a route from Berlin Airport to the center looks at the starting point before the change:

entrances_before

And here the same thing afterwards.

entrances_after

No new unit tests added, sorry.

@1ec5 1ec5 added the geocoding Related to the geocoding feature label Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

geocoding Related to the geocoding feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants