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

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.
LVL 1
vituxaAsked:
Who is Participating?
 
selvolCommented:
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
0
 
vituxaAuthor Commented:
Well, that's easy enough :)))) Thank you!!!!
0
 
selvolCommented:
https://maps.google.com/maps?q=phoenix+to+chicago

Oh it get easier.

As you requested an URL  for thew answer.

Selvol
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.