[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 402
  • Last Modified:

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.
0
vituxa
Asked:
vituxa
  • 2
1 Solution
 
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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now