Route Plotting issue with few locations

4 posts / 0 new
Last post
nmattaparthi
Route Plotting issue with few locations

I tried to plot the routes which are going through the state Zacatecas with maxRoutes more than one in the mapQuest document. There I am facing the route breaking issue between the origin and destination. after setting maxRoutes to 1 the issue got resolved in the document.
May I know the reason why the route is breaking for below latitude and longitude values?
But, In my implementation I had not used the maxRoutes element so, it is taking by default 1 route. still, we have the issue with the route plotting.
L.mapquest.directions().route({
start: [20.66026, -103.4497],
end: [27.470423, -99.534246],
options: {
maxRoutes: 2,
}
});
L.mapquest.directions().route({
start: [27.470423, -99.534246],
end: [27.594073, -99.51285]
});
L.mapquest.directions().route({
start: [27.594073, -99.51285],
end: [32.96451, -96.984901],
options: {
maxRoutes: 2,
}
});
Below are the few latitude and longitude where I am facing the same problem. Might be an issue with the routes which are going through the state: Zacatecas. This issue is still there even after setting the useTraffic parameter to false.

Origin: 20.66826, -103.4497
Destination: 32.96451, -96.984901

Origin: 21.01593, -101.53125
Destination: 27.48088, -99.51789


MQBrianCoakley
I recreated the issue and
I recreated the issue and forwarded it to the development team to assess. Thanks for the information.

nmattaparthi
May I know the update on this

May I know the update on this bug.


MQBrianCoakley
It should be fixed with the
It should be fixed with the new APIs currently in development. I suspect the new directions API will be available early 2021.