This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Routing through swing gates

0

There are two swing gates on a particular road:

https://www.openstreetmap.org/node/8637280777

https://www.openstreetmap.org/node/8637280778

They don't allow routing through them even though in the Feature Editor they have Allowed Access, All set to "yes". Why don't they allow routing?

(This is my first exposure to the behind-the-scenes of OSM. I am trying to figure out why my navigation app, Kurviger, won't allow me to plot a course through this road.)

asked 22 Sep '21, 16:13

dan000's gravatar image

dan000
16113
accept rate: 0%

1

Different routers have different rules about what they think is navigable and what is not. You can try various combinations on the OpenStreetMap site at https://www.openstreetmap.org/directions?engine=graphhopper_car&route=-27.26300%2C152.95739%3B-27.26384%2C152.95687#map=19/-27.26343/152.95714 .

Do you know how often Kurviger updates their routing data from OSM? It won;t be instant, and might be a longer time than you're expecting.

(22 Sep '21, 16:34) SomeoneElse ♦
1

You were probably mistaken about the allowed access for all to be set to "yes". What you were seeing in the editor was an implicit assumption made by the editor. Note that the "yes" was written in a light grey font. Only when it appears as black font is it explicitly tagged. You see that also in the tags listed on the node pages that you linked above where the access key is not present.

(22 Sep '21, 21:07) TZorn

2 Answers:

3

These gates don't actually have the allowed access set to "yes". Rather, they've both been tagged with opening_hours=24/7, which is a tag that routers may not look at for barriers. OSRM is treating these gates as closed and routing via other roads, though Graphhopper is routing through them.

Routers are more likely to look at the legal access tags. If these gates are always open, I would recommend tagging them with access=yes.

answered 22 Sep '21, 17:10

alester's gravatar image

alester
6.6k266100
accept rate: 28%

2

As we have not heard back from @dan000 as yet, I have added access=yes to both lift gates as they are only in use during very uncommon flooding events at the river crossing.

answered 24 Sep '21, 00:27

nevw's gravatar image

nevw
9.8k2690178
accept rate: 9%

Thanks for that.

(24 Sep '21, 06:58) dan000

Source code available on GitHub .