mapbox / mapbox-gl-directions

Directions plugin for mapbox-gl-js using Mapbox Directions API.
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-directions/
ISC License
237 stars 124 forks source link

Valhalla support #260

Open AlexKaravaev opened 4 years ago

AlexKaravaev commented 4 years ago

I can see, that mapbox oficially uses valhalla as backend for routing, but I don't understand, how I can connect own instance of valhalla to directions plugin? For me only osrm works

canadaka commented 3 years ago

I am also interested if this is possible with this plugin. It seems it is via overriding the default API? https://github.com/mapbox/mapbox-gl-directions/blob/2dadf74134f4f5e6a5a97474336545e527243f78/src/directions.js#L25