itinero / routing

The routing core of itinero.
Apache License 2.0
222 stars 70 forks source link

Pedestrian ignors barriers #335

Closed kaje001 closed 3 years ago

kaje001 commented 3 years ago

Hi,

I'm working on a guiding system for for Parks and I can't get it working that gates (or barriers in general) are noticed by pedestrians. I created the database with idp and with loadOsmData(); both with the profile Vehicles.Pedestian. The routing does work very well, but like the heading says, any kind of barrier is ignored and this is, especially in a park that is surrounded with a fence, quite crucial :) The osm file seems correct, the barries are maked with foot = no or similar.

Is there a simple way to change the Profile, that also pedestrians avoid barries?

Thanks a lot! Kaje

kaje001 commented 3 years ago

Found it :) Took some time to get into profile building but it was in the end (after two days of testing) way simpler than expected. The node_restriction part of the default pedestrian profile ends with results.vehicle = "motorcar" changing that into "foot" now allows also pedestrians to notice any kind of barriers, accesslimitation etc.