stagecoach-cli
v0.1.0
Published
UK bus data CLI: timetables, routes, fares, and live positions from BODS
Readme
stagecoach-cli
UK bus data. Timetables, routes, fares, live positions from BODS.
Install
npm install -g stagecoach-cliInit
stagecoach init --api-key <key>Get a key at data.bus-data.dft.gov.uk.
Commands
| Command | What |
|---------|------|
| stops <query> | name, NaPTAN code, or lat,lon |
| live <target> | vehicles near coords or stop |
| live route <id> | vehicles on route |
| route <query> | search timetable datasets |
| fare --query <q> | search fare datasets |
| operators --query <q> | search operators |
--json on any command for structured output.
Development
git clone https://github.com/realfizz/stagecoach-cli.git
cd stagecoach-cli
bun install
bun test
bun run build