geolocation
geolocationUsage
var geolocation = require('geolocation')
geolocation.getCurrentPosition(function (err, position) {
if (err) throw err
console.log(position)
})
Install
$ npm install geolocation
API
geolocation.getCurrentPosition(options, callback)
Wrapsnavigator.geolocation.getCurrentPosition
and exposes a node-ish api.geolocation.createWatcher(options, changeListener)
Returns an instance ofWatcher
Class: geolocation.Watcher
Inherits fromEventEmitter