Reads a continuous stream of GTFS Realtime (GTFS-RT) data with DIFFERENTIAL
incrementality from NATS, converts it into a single FULL_DATASET
GTFS-RT feed, and serves it via HTTP.
Note from gtfs-rt-differential-to-full-dataset
, which is used for the conversion:
Right now, this package does not obey the draft
DIFFERENTIAL
spec exactly. See below and #1 for details.
npm install -g OpenDataVBB/nats-consuming-gtfs-rt-server
# todo
Usage:
serve-gtfs-rt-from-nats [options]
Options:
--port -p Port to serve the GTFS Realtime feed on.
Default: $PORT, otherwise 3000
--nats-servers NATS server(s) to connect to.
Default: $NATS_SERVERS
--nats-user User to use when authenticating with NATS server.
Default: $NATS_USER
--nats-client-name Name identifying the NATS client among others.
Examples:
serve-gtfs-rt-from-nats --port 1234 --nats-user foo
gtfs-rt-differential-to-full-dataset
– Transform a differential GTFS Realtime feed into a full dataset/dump.gtfs-rt-bindings
– Parse and serialize GTFS Realtime data encoded as protocol buffers. (third-party)gtfs-realtime-bindings
– Javascript classes generated from the GTFS-realtime protocol buffer specification. (official)
If you have a question or need support using nats-consuming-gtfs-rt-server
, 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.