We help IT Professionals succeed at work.

How to get a google direction from place to place via URL?

vituxa
vituxa asked
on
Hello Experts.
I need to create an application that would get me directions from one US place to another and create a permanent URL for those directions. Could you possibly provide me with a javascript code example for something like that? I cannot seem to find anything useful out there.
Comment
Watch Question

Commented:
https://developers.google.com/maps/documentation/directions/

The url would look like this,

http://maps.googleapis.com/maps/api/directions/json?origin=Boston,MA&destination=Concord,MA&waypoints=Charlestown,MA|Lexington,MA&sensor=false

Open in new window


You then need to decode the json

Author

Commented:
Well, that's easy enough :)))) Thank you!!!!

Commented:
https://maps.google.com/maps?q=phoenix+to+chicago

Oh it get easier.

As you requested an URL  for thew answer.

Selvol

Explore More ContentExplore courses, solutions, and other research materials related to this topic.