CLI tool to record data from monitor-hafas-cli@2
into a LevelDB.
npm install record-hafas-data
Usage:
monitor-hafas … | record-hafas-data <path-to-leveldb>
Supported monitor-hafas-cli events:
departure, stopover, trip
Options:
--event-types -e Event types for record. Default: all
Examples:
monitor-hafas vbb-hafas departure stations \
900000100001,900000100003 | record-hafas-data vbb-deps.ldb
monitor-hafas oebb-hafas stopover bbox \
52.6 13.3 52.3 13.6 | record-hafas-data oebb-stopovers.ldb
Usage:
export-hafas-data-as-sql <path-to-leveldb> [event types]
Examples:
export-hafas-data-as-sql db.ldb departure,stopover >export.sql
monitor-hafas-cli
– Monitor any HAFAS endpoint from the command line.
If you have a question or have difficulties using record-hafas-data
, 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.