locatify
v2.0.1
Published
Geo location and device orientation as an EventEmitter
Maintainers
Readme
Locatify.js
Geo location and device orientation as an EventEmitter.
Usage
var locatify = require('locatify');
var locationTracker = locatify.create();API
The location tracker inherits from EventEmitter.
destroy(): Remove all event handlers and listeners from this event emitter.
Events
position: Emitted when the position changes. The passed object has these properties:latitudelongitudeaccuracy
heading: Emitted when the device orientation changes with the new degree numeric value.error: If an error occurred obtaining the device position.
Development
npm installto install the dev dependenciesnpm testto lint, run tests in PhantomJS and check code coverage
License
MIT
