Geo location and device orientation as an EventEmitter
npm install locatify[![Build Status]](https://travis-ci.org/mantoni/locatify.js)
[![SemVer]](http://semver.org)
[![License]](https://github.com/mantoni/licy.js/blob/master/LICENSE)
Geo location and device orientation as an EventEmitter.
``js
var locatify = require('locatify');
var locationTracker = locatify.create();
`
The location tracker inherits from [EventEmitter][].
- destroy(): Remove all event handlers and listeners from this event emitter.
- position: Emitted when the position changes. The passed object has theselatitude
properties:
- longitude
- accuracy
- heading
- : Emitted when the device orientation changes with the new degreeerror
numeric value.
- : If an error occurred obtaining the device position.
- npm install to install the dev dependenciesnpm test` to lint, run tests in PhantomJS and check code coverage
-
MIT
[Build Status]: http://img.shields.io/travis/mantoni/locatify.js.svg
[SemVer]: http://img.shields.io/:semver-%E2%9C%93-brightgreen.svg
[License]: http://img.shields.io/npm/l/locatify.svg
[EventEmitter]: https://nodejs.org/api/events.html