-1

Is it possible to retreive from Mapbox Directions API, routes (for specified points) which are restricted to my own routes source ? Now I receive good routes, but in my case, I have my own layers with pathes and sometimes Mapbox gives me route which is not part of my layer on the map.

radekdob
  • 127
  • 1
  • 3
  • 9

1 Answers1

1

It is not possible to restrict the Mapbox router (which is based upon OSRM) to a certain set of streets.

What you can do, is to use Mapbox Map Matching to retrieve a route that has a set of coordinates (which you can pass in the MapMatching request) as waypoints.

Moritz
  • 1,710
  • 1
  • 8
  • 13