Skip to content

syciphj/JS-Google-Maps-Directions-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS-Google-Maps-Directions-Demo

Edit on StackBlitz ⚡️

Try out the Google Maps Platform Javascript API together with its built in Directions Service to show an interactive map with show routes from an origin or destination.

How to use

The fastest way to get started is to click on the Edit on Stackblitz link above.

  1. In index.html, find the YOUR_API_KEY string on the script tag bootstraping the Maps JS API. Replace that string with your actual API Key.
  2. Make sure you have Maps Javascript API and Maps Directions API enabled, with available quota.
  3. You can just click Get Directions on the UI to start. Replace the origin and destination if you want as well.