Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.8 KB

readme.md

File metadata and controls

50 lines (35 loc) · 1.8 KB

record-hafas-data

CLI tool to record data from monitor-hafas-cli@2 into a LevelDB.

npm version build status ISC-licensed chat with me on Gitter support me on Patreon

Installing

npm install record-hafas-data

Usage

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

Related

Contributing

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.