Skip to content

a simple google map direction api without requiring api key (by default)

License

Notifications You must be signed in to change notification settings

yujinlim/google-maps-direction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps Direction API Build Status

a simple google map direction api without requiring api key (by default)

Install

npm i --save google-maps-direction

Usage

var direction = require('google-maps-direction');

direction({
  origin: 'bukit damansara',
  destination: 'klcc'
})
.then(function(result){
  // return result
  //   routes: [...],
  //   geocoded_waypoints: [...],
  //   status: "OK"
});

API

direction(options)

Returns Promise object

options

Type: Object

origin

Required
Type: String
From which location

destination

Required
Type: String
To which location

for more information about parameters, please read more here

Related

About

a simple google map direction api without requiring api key (by default)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published