a simple google map direction api without requiring api key (by default)
npm i --save google-maps-direction
var direction = require('google-maps-direction');
direction({
origin: 'bukit damansara',
destination: 'klcc'
})
.then(function(result){
// return result
// routes: [...],
// geocoded_waypoints: [...],
// status: "OK"
});
Returns Promise object
Type: Object
Required
Type: String
From which location
Required
Type: String
To which location
for more information about parameters, please read more here