Directions Result to online Mapquest Map Route

6 posts / 0 new
Last post
DvdKhl
Directions Result to online Mapquest Map Route

Hi,

I'm trying to display the result of an Optimized Route on the online MapQuest map (i.e. on https://www.mapquest.com/ ).

The Route Planner seems to be what I want but it looks like that service is discontinued soon.

What would be the new way to display a route on Mapquest, given the coordinates obtained by an optimized route request?

An example with three or more coordinates would be great.

 


MQBrianCoakley
You'll still be able to
You'll still be able to access Route Planner and the tools you're used to seeing, all with a new and updated look. The Route Planner documentation will change in the coming weeks so keep an eye out.

DvdKhl
Hi,

Hi,

I'm a bit stumped. I'm trying to display the interactive map by opening a link in a webbrowser with either get or post parameters.
(e.g. https://www.mapquest.com/directions/from/germany/aldenhoven-282260981/to...)

I either have multiple gps coordinates or multiple addresses but I haven't found any docs or examples how to display those locations on https://www.mapquest.com/ .
(Google Maps example https://www.google.de/maps/dir/Freiheitstraße,+52531+Übach-Palenberg/Hauptstraße,+52499+Baesweiler )

Since I'm developing for a desktop application I cannot use js.

As far as I can tell from the docs I can only assume that this is (currently?) not possible
Is that correct?


MQBrianCoakley
The e.g. url above produces a
The e.g. url above produces a route with 3 locations western Germany. Are you seeing something different?

DvdKhl
I get the same but that

I get the same but that example was me trying to guess the parameters for the URL and it is not working reliably.

Could you give me an example how I would use the result of a https://developer.mapquest.com/documentation/directions-api/ Optimized Route Request to show it on https://www.mapquest.com/ ?

Since I'm writing it for a Desktop Application I'd like to add the necessary Parameters either through URL Parameters or in the Post Body of the WebRequest.


MQBrianCoakley
The new route planner is out
The new route planner is out and ready to go now. Does this solve your issues?   If not, the directions api is what MapQuest.com uses in the background. Using the directions api to get a MapQuest.com url is reversing the process. Once a route request is successful it can be put on a Leaflet map.