google-maps-direction

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i google-maps-direction

Weekly Downloads

18

Version

1.0.0

License

MIT

Last publish

Collaborators

  • yujinlim