Add more than one route to map?

3 posts / 0 new
Last post
mhage421
Add more than one route to map?

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
The routing wrapper is only
The routing wrapper is only built to display one route at a time. But you can build your own function to hit the web service directly then display the results as needed.

MQBrianCoakley
The longurl service should be
The longurl service should be back up and running again.