Overall Map?

4 posts / 0 new
Last post
Kriegenbergh
Overall Map?

I'm able to see a mapUrl for each maneuver in the result of a POST to the Directions API. How can I get a single map that shows the entire route?

 


MQBrianCoakley
There is no overall map URL,
There is no overall map URL, but you can use the sessionid from the route response in a map request to get the entire route highlight.

Kriegenbergh
Do you have an example for

Do you have an example for that? Which API allows me to pass the sessionId I receive from the Directions API?

I use the the DIrections API to get the sessionId for x number of locations with a POST to this url: http://www.mapquestapi.com/directions/v2/route?key=....

What can I call next to get the entire map?


MQBrianCoakley
If you start with any of the
If you start with any of the maneuver map URLs, you can remove everything in the URL except the key and session. This will leave a 256x256 map with default origin and destination icons and the route highlight. You can use any of the other parameters to modify the map (size, center, zoom, etc).