gmaps-static-paths
v1.0.0
Published
Static google maps url generator for paths.
Downloads
2
Readme
Static Google Maps paths
Generate an Static Google Map url to draw a path on a map.
Usage
Install
npm install gmaps-static-paths --save
Require
var gmapsPaths = require('gmaps-static-paths')(GMAPS_KEY);
Generate urls
var url = gmapsPaths.getUrl([ [40.749825,-73.987963], [40.752946,-73.987384], [40.755823,-73.986397] ]);
Or download the image
gmapsPaths.getMap([ [40.749825,-73.987963], [40.752946,-73.987384], [40.755823,-73.986397] ], {}, './mymap.png');
CONTRIBUTING
Currently only accepting PR's. I don't have much time to work on new features.
Help with documentations, test and all that jazz is greatly appreciated.