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

router issue? #108

Closed wyattp11 closed 7 years ago

wyattp11 commented 7 years ago

When I query Monterey, CA to Sacramento, CA I am getting some anomalies...

1) Directions will return only one route sometimes, then two routes. It will also prioritize them differently. Are current traffic conditions influencing what route is returned and how many?

2) I am getting directions to roads off highway in driving mode. See screen grab: routererror

I just replicated this in the Mapbox GL directions as well, so I assume this is the underlying routing engine with the error and not directions.js... sorry wasn't sure where to post this?

wyattp11 commented 7 years ago

Just checked OSRM, same error and Mapbox based. Graphopper and LRM route properly (on highway) so appears to be Mapbox router error.

wyattp11 commented 7 years ago

Also just tried to manipulate the route manually using readonly: false and the router refuses to use these sections of the highway... seems like a map data issue, happens on streets, light and dark styles.

danpat commented 7 years ago

@wyattp11 Sorry for the slow response - this is definitely a problem on our end when finding the route. It looks like there are some HOV lane designations that we're incorrectly interpreting on I-80 that is forcing the route off the main road. HOV lane handling is new, so this is likely a bug.

We're workin' on a fix, will update this ticket when solved.

wyattp11 commented 7 years ago

@danpat awesome thanks, @lyzidiamond just sent the link to the directions feedback on Mapbox but it only provides the one route down I-5 so I can't submit the I-80 route there.

danpat commented 7 years ago

@wyattp11 We deployed a fix for this yesterday, and now that the map has been re-processed, the routes are looking much better:

screen shot 2016-10-26 at 8 05 52 am

Thanks for the report, and sorry it took so long to get it fixed!

wyattp11 commented 7 years ago

Awesome, thank you. Working on my end!