hafas-monitor-trips-server
A server that manages HAFAS monitors.
Installation
npm install hafas-monitor-trips-server
Usage
const createServer = const server = const subA = serverconst subB = server subAsubB
subA
andsubB
have overlapping bounding boxes, so they will share one monitor.hafas
is ahafas-client
/*-hafas
instance.subscribe(bbox)
returns anEventEmitter
, emitting the same events as ahafas-monitor-trips
instance.
See example.js
for a full example.
Contributing
If you have a question or need support using hafas-monitor-trips-server
, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.