Add more than one route to map?

2 posts / 0 new
Last post
Gujarish
Add more than one route to map?

Hii everyone,,

I am attempting to add a route to a map using the addRoutes method. When I attempt to do this with more than 21 locations, a 404 error comes back looking like this:

"NetworkError: 404 Not Found - https://open.mapquestapi.com/longurl/v1?key=2KWyS3FVIgmhNYSxkoCkm9WiFO0d..."

So it looks like the url request that addRoutes makes is too long? To work around this I am attempting to split the locations into two groups and then call addRoutes twice. But both instances of addRoutes don't get added to the map, the second one just overwrites the first one. How do I make this work, the documentation is lacking? Thanks..


    MQBrianCoakley
    I suspect this is from a very
    I suspect this is from a very old version of the MapQuest API since there hasn't been a longurl API for years. Try out the MapQuest.js SDK.