Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

geolocation-stream

0.0.1 • Public • Published

geolocation-stream

npm install geolocation-stream

use HTML5 Geolocation to watch location changes the node way -- with streams

var movement = geolocationstream()

movement is a readable stream and speaks stream events: data, error and end. that means you can pipe movement output to anything that accepts streams, such as an XHR. in this case the data events will be lat/lon position updates using the watchPosition part of HTML5 geolocation

to generate demo-bundle.js using browserify:

npm install browserify -g
browserify demo.js -o demo-bundle.js

MIT LICENSE

Keywords

none

install

npm i geolocation-stream

Downloadsweekly downloads

0

version

0.0.1

license

BSD-2-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability