I'm trying to make a react-native application for cyclists; I have some routes (coordinates) in a separate file that the cyclist can use.
I need to make Direction API requests that are bounded to those routes.
I know I can add waypoints to a request, but those would be "required" stops in the route. I need the API to use the waypoints as some references of "ideal" waypoints.
For example, in the image, the lines in red are the one I have stored, and the purple line is the Directions given by the API. I would like the API to use the circled stretch instead.
Is it possible to do it with Mapbox API or any other way? can I use any other tool for generating the route I need?
I'm trying to make a react-native application for cyclists; I have some routes (coordinates) in a separate file that the cyclist can use.
I need to make Direction API requests that are bounded to those routes.
I know I can add waypoints to a request, but those would be "required" stops in the route. I need the API to use the waypoints as some references of "ideal" waypoints.
For example, in the image, the lines in red are the one I have stored, and the purple line is the Directions given by the API. I would like the API to use the circled stretch instead.
Is it possible to do it with Mapbox API or any other way? can I use any other tool for generating the route I need?