Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var gm = require("googlemaps");
- gm.directions("from", "where go to" , function ( err, data ) {
- console.log(data.routes[0].legs[0].distance);
- console.log(data.routes[0].legs[0].duration);
- }, "false");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement