fh-wfm-gps
v0.0.1
Published
A simple GPS Raincatcher module that emits the current location when requested
Downloads
7
Readme
Feedhenry Raincatcher GPS module
This is a simple Raincatcher module that provides a service that subscribes and publishes location topics.
Topics
Subscription
This module subscribes to the wfm:gps:position:update
topic. This triggers a call to the navigator.geolocation
functionality in the browser if available.
Publish
This module publishes the following topics:
| Topic | Parameters |
|done:wfm:gps:position:update
| See geolocation docs |
|error:wfm:gps:position:update
| See PositionError docs
Client Side Usage
angular.module('app', [
require('fh-wfm-gps')
...
])