geolocation

node-ish api for navigator.geolocation in the browser

geolocation

geolocation

var geolocation = require('geolocation')
 
geolocation.getCurrentPosition(function (errposition) {
  if (err) throw err
  console.log(position)
})
$ npm install geolocation

Wraps navigator.geolocation.getCurrentPosition and exposes a node-ish api.

Returns an instance of Watcher

Inherits from EventEmitter

Starts watching the current position.

Stops watching the current position.

Emitted when the position change.

Emitted if an error occurs.

MIT