2.0.1 • Published 6 years ago

locatify v2.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Locatify.js

Build Status SemVer License

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:
    • latitude
    • longitude
    • accuracy
  • heading: Emitted when the device orientation changes with the new degree numeric value.
  • error: If an error occurred obtaining the device position.

Development

  • npm install to install the dev dependencies
  • npm test to lint, run tests in PhantomJS and check code coverage

License

MIT

2.0.1

6 years ago

2.0.0

6 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago