google-maps-direction
v1.0.0
Published
google maps direction simple api
Downloads
36
Maintainers
Readme
Google Maps Direction API
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