graphhopper / directions-api

Issues for the GraphHopper Directions API
https://graphhopper.com/api/1/docs/
60 stars 25 forks source link

barrier blocking although access=yes #80

Open karussell opened 6 years ago

karussell commented 6 years ago

https://www.openstreetmap.org/directions?engine=graphhopper_car&route=37.7476%2C-119.8090%3B37.7546%2C-119.8005

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

karussell commented 6 years ago

Ah, no. The problem is the seasonal restricted road https://www.openstreetmap.org/way/10428908

Maybe we should disable conditional access tags until we have implemented a "departure" parameter for the Routing API? Because otherwise one cannot plan e.g. a summer trip in February.

What do you think @boldtrn?

boldtrn commented 6 years ago

I think the best way would be a flexible LM profile that can either allow or block seasonal/conditional accessible roads, depending on a request parameters. This could be extended over time to first work with departure days of the week (for roads closed on certain days) or months (for seasonal closed roads). After that we might be able to further extend this to an actual departure time. I think a fully working "departure" parameter is a pretty big and hard to develop step (even after #1112).

BTW: In other parts of the world it is really common to have time dependent turn-restrictions, which makes this even more complicated.