mapbox / mapbox-directions.js

Leaflet plugin for the Mapbox Directions API
https://www.mapbox.com/mapbox.js/example/v1.0.0/mapbox-directions/
ISC License
60 stars 23 forks source link

Directions does not recognize valid paths #109

Closed niborg closed 7 years ago

niborg commented 7 years ago

I'm having a problem with the directions API router not recognizing paths in OpenStreetMap. E.g., when using the mapbox sample directions page, I'm unable to plot a walking path between A and the trail in the middle of the picture:

screenshot from 2016-10-21 20-55-52

You can access the route data here on OSM if you log in (I think).

niborg commented 7 years ago

I've played around with creating and modifying paths elsewhere, with and cannot recreate this specific issue. Only distinction I can draw with respect to the above scenario is that the starting location is designated as a 'bridle path' and the (desired) ending location is designated as a 'foot path' (both paths are designated as permissible to both pedestrians and bikes). Any ideas?

daniel-j-h commented 7 years ago

The way in question seems to be a bridleway with explicit bicycle=yes and foot=yes tags.

You are right, this should be routed over

daniel-j-h commented 7 years ago

I'm closing this ticket in favor of https://github.com/Project-OSRM/osrm-backend/issues/3335 upstream with the routing engine.

Thanks for reporting - we're working on fixing this!