live-gomedia-position
v1.0.0
Published
Live vehicle geolocation, taken from the GoMedia on-board WiFi entertainment system.
Downloads
14
Maintainers
Readme
live-gomedia-position
Live vehicle geolocation, taken from the GoMedia on-board WiFi entertainment system.
Installation
npm install live-gomedia-position
Usage
positions()
returns an async iterable of geolocation data points.
const {positions} = require('live-gomedia-position')
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
for await (const pos of positions()) {
console.log(pos)
await sleep(5000)
}
// {
// latitude: 52.715446,
// longitude: 12.995633,
// speed: 27.43, // km/h
// }
// {
// latitude: 52.715805,
// longitude: 12.992863,
// speed: 27.323,
// }
Related
live-icomera-position
– Live vehicle geolocation, taken from the on-board Icomera WiFi system.live-cd-wifi-position
– Live vehicle geolocation of Czech Railways trains, taken from the on-board WiFi system.wifi-on-ice-position-stream
– A stream of positions of German Railways ICE trains, taken from the on-board WiFi.
Contributing
If you have a question or need support using live-gomedia-position
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, use the issues page.