[openstreetmap/openstreetmap-website] Take entrances into account for routing start and end points (PR #7017)
Sarah Hoffmann
notifications at github.com
Mon Apr 20 10:53:19 UTC 2026
### Description
Nominatim has been able for a while to [return entrances](https://nominatim.org/2025/09/13/entrances.html) 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:
<img width="640" alt="entrances_before" src="https://github.com/user-attachments/assets/26f975c0-d7c1-4bef-acd9-9ee3d3daadc1" />
And here the same thing afterwards.
<img width="640" alt="entrances_after" src="https://github.com/user-attachments/assets/4e1eaf4b-a187-4b80-b02d-2bd0e3c30c82" />
No new unit tests added, sorry.
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/7017?email_source=notifications&email_token=AAK2OLLSEE2F4LD7EVDE7434WX6R7A5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTKNJVGM4DCMRRGWTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVVYHEX3POBSW4X3DNRUWG2Y
-- Commit Summary --
* take entrances into account for routing start and end points
-- File Changes --
M app/assets/javascripts/index/directions-endpoint.js (21)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/7017.patch?email_source=notifications&email_token=AAK2OLMWD6SELXOSMR5UNUL4WX6R7A5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTKNJVGM4DCMRRGWTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVZYHEX3QMF2GG2C7MNWGSY3Lhttps://github.com/openstreetmap/openstreetmap-website/pull/7017.diff?email_source=notifications&email_token=AAK2OLPPBU222SHKFY4MULT4WX6R7A5CNFSNUABEM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UF4ZTKNJVGM4DCMRRGWTHEZLBONXW5KTTOVRHGY3SNFRGKZFFMV3GK3TUVVYHEX3ENFTGMX3DNRUWG2Y
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7017
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/7017 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260420/da0baa79/attachment.htm>
More information about the rails-dev
mailing list