1.0.0 • Published 8 years ago

google-maps-direction v1.0.0

Weekly downloads
103
License
MIT
Repository
github
Last release
8 years ago

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