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

Gate that is locked to vehicles but occasionally lets walkers and cyclists out.

0

The gate here https://www.openstreetmap.org/#map=19/52.33809/-0.17666 has been closed to vehicles for a several years. It had a small hand gate for walkers and cyclists which saved a detour of one K or so. The College has some young students now so the small gate can't be opened from Coxons Close either since 2015. I'm told it is exit only at some times, A young woman I asked said "I have to take the long way around but a can get out after work by pressing a button on the inside to get out". I mapped it as barrier=gate, how do i add these conditional tags. I tried out the routers on the main map page. Car, cycle and foot all route through it. Should I just break the way to stop incorrect routing?

asked 06 Jan '17, 14:20

andy%20mackey's gravatar image

andy mackey
13.2k87143285
accept rate: 4%

edited 06 Jan '17, 14:21


One Answer:

4

Don't break the way, use access tags instead.

According to your description it sounds like a private gate to me. In this case I would just add access=private to the gate. This should be enough for routers to avoid the gate, otherwise they are broken (or use old data).

Alternatively you could try to use conditional restrictions if you know the exact times the gate is open. However in your case I wouldn't bother to map them. If you insist to map them nevertheless then use the most restrictive value as default. Example: access=private + foot:conditional=yes @ Mo-Fr 08:00-16:00 + bicycle:conditional=yes @ Mo-Fr 08:00-16:00. However this still doesn't include the direction which seems to be important according to your description.

answered 06 Jan '17, 14:52

scai's gravatar image

scai ♦
33.3k21309459
accept rate: 23%

edited 06 Jan '17, 14:57

1

Thanks Alex

(06 Jan '17, 16:43) andy mackey
1

I added access=private as scai suggested and now walkers and drivers don't get sent through there by the routers.

(11 Jan '17, 19:00) andy mackey

Source code available on GitHub .