Use geolocation services to get lat long
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
README.md
index.js
package.json

README.md

geolocate

Use geolocation services to get lat long. Currently only works on OSX Snow Leopard or greater, but I'd love contributions for other platforms.

var geolocate = require('geolocate');
geolocate(function(latLong){
   var latitude = latLong[0];
   var longitude = latLong[1];
});

Thanks to https://github.com/robmathers/WhereAmI for the actual heavy lifting!