Skip to content Skip to sidebar Skip to footer

Using Node-googlemaps To Get Direction From Google Maps

I am working on a project that requires a gsm Module (sim900d) send two location coordinates (current location and destination) to a server and get the direction using google maps

Solution 1:

var gm = require('googlemaps');
var util = require('util');

gm.config('key', '<insert your api key here>');
gm.directions('31.470656,74.412929', '31.470789,74.408619' , 
function(err, data){util.puts(JSON.stringify(data));});

This is how you get directions between two locations.


Post a Comment for "Using Node-googlemaps To Get Direction From Google Maps"