Live vehicle geolocation of České dráhy (Czech Railways) trains, taken from the on-board WiFi system.
npm install live-cd-wifi-positionasStream() returns a readable stream in object mode.
const {asStream} = require('live-cd-wifi-position')
const ndjson = require('ndjson')
const positions = asStream()
positions.on('error', console.error)
positions
.pipe(ndjson.stringify())
.pipe(process.stdout)An individual data point will look like this:
{
latitude: 50.62498,
longitude: 14.055638,
altitude: 143,
speed: 88, // km/h
}You can also use the EventEmitter-based API:
const {asEventEmitter} = require('live-cd-wifi-position')
const positions = asEventEmitter()
positions.on('error', console.error)
positions.on('data', data => console.log(data))cd-wifi-client– A client for the WiFi portal of Czech Railways trains.wifi-on-ice-position-stream– A stream of positions of German Railways ICE trains, taken from the on-board WiFi.wifi-on-ice-portal-client– Query information from the WiFi portal in German ICE trains.record-ice-movement– Record the movement of any ICE using the on-board WiFi.live-icomera-position– Live vehicle geolocation, taken from the on-board Icomera WiFi system.record-flixbus-movement– Command-line tool to record the movement of a Flixbus coach using the on-board WiFi.live-gomedia-position– Live vehicle geolocation, taken from the GoMedia on-board WiFi entertainment system.sncf-wifi-portal-client– Query information from the SNCF WiFi portal in French TGV trains.record-tgv-movement– Record the movement of any TGV using the on-board WiFi.digital-im-regio-portal-client– Query information from the Digital im Regio portal in German Regio trains.portale-regionale-wifi-position– Query information from the Portale Regionale WiFi portal in Trenitalia (Italian Railways) trains.
If you have a question or need support using live-cd-wifi-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.