Unofficial command line interface for ZTM PoznaΕ API
Check positions and timetables for buses and trams in PoznaΕ
π Changelog π Acknowledgements π΅π± Polish version of README
- Check position of vehicle
- List all lines
- Get line description
- Check timetable
Node.js is required to install and use this program.
npm install -g poznan-transport-cli
poznan-transport-cli <command> <options>
poznan-transport-cli help
poznan-transport-cli --help
poznan-transport-cli -h
poznan-transport-cli <command> --help
poznan-transport-cli <command> -h
poznan-transport-cli version
poznan-transport-cli --version
poznan-transport-cli -v
poznan-transport-cli position <options> <search>
Command displays line number, vehicle number, brigade number, position and direction.
If you do not specify a search query, the command displays the positions of all vehicles.
You can search by line number, vehicle number or brigade number.
If you pass --line-number
argument, the command searches only by line number.
If you pass --vehicle-number
argument, the command searches only by vehicle number.
If you pass --brigade-number
argument, the command searches only by brigade number.
poznan-transport-cli position
poznan-transport-cli position 5
poznan-transport-cli position 5 --line-number
poznan-transport-cli position 427 --vehicle-number
poznan-transport-cli position 5/9 --brigade-number
Command:
poznan-transport-cli position 5
Output:
ββββββββ¬ββββββββββ¬ββββββββββ¬βββββββββββββββββββββββββββββββββββββββββ¬βββββββββββββββ
β Line β Vehicle β Brigade β Position β Direction β
ββββββββΌββββββββββΌββββββββββΌβββββββββββββββββββββββββββββββββββββββββΌβββββββββββββββ€
β 5 β 450 β 5/10 β 52.38100814819336, 16.879940032958984 β Zawady β
β 5 β 436 β 5/6 β 52.40298843383789, 16.915029525756836 β GΓ³rczyn PKM β
β 5 β 447 β 5/7 β 52.4033317565918, 16.954439163208008 β GΓ³rczyn PKM β
β 5 β 418 β 5/8 β 52.40589904785156, 16.93073081970215 β Zawady β
β 5 β 427 β 5/9 β 52.381099700927734, 16.881160736083984 β Zawady β
ββββββββ΄ββββββββββ΄ββββββββββ΄βββββββββββββββββββββββββββββββββββββββββ΄βββββββββββββββ
poznan-transport-cli route <search>
Command displays line number, vehicle type, direction and agency.
If you do not specify a search query, the command displays all routes.
Command:
poznan-transport-cli route
Output:
ββββββββ¬βββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Line β Type β Direction β Agency β
ββββββββΌβββββββΌβββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β 0 β Tram β PL. WIELKOPOLSKI - PL. WIELKOPOLSKI β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
β 1 β Tram β BUDZISZYΕSKA - FRANOWO β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
β 2 β Tram β DΔBIEC PKM - STARE ZOO β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
β 3 β Tram β UNII LUBELSKIEJ - BΕAΕ»EJA β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
β 5 β Tram β ZAWADY - GΓRCZYN PKM β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
β 6 β Tram β MIΕOSTOWO - BUDZISZYΕSKA β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
β 7 β Tram β POΕABSKA - OGRODY β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
β 8 β Tram β OGRODY - MIΕOSTOWO β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
β 9 β Tram β DΔBIEC PKM - PIΔTKOWSKA β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
...
β 905 β Bus β OS. SOBIESKIEGO - CHLUDOWO SZKOΕA β ZakΕad Komunikacji Publicznej Suchy Las Sp. z o.o. β
β 907 β Bus β OS. SOBIESKIEGO - CHLUDOWO SZKOΕA β ZakΕad Komunikacji Publicznej Suchy Las Sp. z o.o. β
β 911 β Bus β RONDO ΕRΓDKA - BIEDRUSKO PARK β Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu β
ββββββββ΄βββββββ΄βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ΄ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Command:
poznan-transport-cli route 5
Output:
ROUTE 5
Direction: ZAWADY - GΓRCZYN PKM
Type: Tram
Agency: Miejskie PrzedsiΔbiorstwo Komunikacyjne Sp. z o.o. w Poznaniu
Route:
βββββββββββββββββββββββββ¬ββββββββββββββββββββββββ
β ZAWADY β GΓRCZYN PKM β
β Podwale β Matyi β
β Jana PawΕa II β Towarowa β
β KΓ³rnicka β ΕwiΔty Marcin β
β Mostowa β Aleje Marcinkowskiego β
β pl. BernardyΕski β PodgΓ³rna β
β PodgΓ³rna β pl. BernardyΕski β
β Aleje Marcinkowskiego β Mostowa β
β 27 Grudnia β KΓ³rnicka β
β Gwarna β Jana PawΕa II β
β ΕwiΔty Marcin β Podwale β
β Towarowa β ZAWADY β
β Matyi β β
β GΕogowska β β
β GΓRCZYN PKM β β
βββββββββββββββββββββββββ΄ββββββββββββββββββββββββ
poznan-transport-cli timetable <line> <stop>
You need to specify line number and stop ID.
Command:
poznan-transport-cli timetable 5 134
Output:
WORKDAYS SATURDAYS SUNDAYS
ββββββ¬ββββββββββββββββββββ ββββββ¬ββββββββββββββββββββ ββββββ¬ββββββββββββββββββββ
β 04 β β β 04 β 53 β β 04 β β
β 05 β 00 14 28 43 58 β β 05 β 13 32 52 β β 05 β β
β 06 β 13 23 33 43 53 β β 06 β 12 32 52 β β 06 β 07 37 β
β 07 β 03 13 23 33 43 53 β β 07 β 12 32 52 β β 07 β 07 37 β
β 08 β 03 13 23 33 43 53 β β 08 β 12 32 52 β β 08 β 07 37 β
β 09 β 03 13 28 33 43 58 β β 09 β 12 32 52 β β 09 β 07 37 β
β 10 β 13 28 43 58 β β 10 β 12 32 52 β β 10 β 07 32 52 β
β 11 β 13 28 43 58 β β 11 β 12 32 52 β β 11 β 12 32 52 β
β 12 β 13 28 43 58 β β 12 β 12 32 52 β β 12 β 12 32 52 β
β 13 β 13 23 33 43 53 β β 13 β 12 32 52 β β 13 β 12 32 52 β
β 14 β 03 13 23 33 43 53 β β 14 β 12 32 52 β β 14 β 12 32 52 β
β 15 β 03 13 23 33 43 53 β β 15 β 12 32 52 β β 15 β 12 32 52 β
β 16 β 03 13 23 33 43 53 β β 16 β 12 32 52 β β 16 β 12 32 52 β
β 17 β 03 13 23 33 43 53 β β 17 β 12 32 52 β β 17 β 12 32 52 β
β 18 β 03 13 23 33 42 52 β β 18 β 12 32 52 β β 18 β 12 32 52 β
β 19 β 02 12 32 52 β β 19 β 12 32 52 β β 19 β 12 32 52 β
β 20 β 12 32 52 β β 20 β 12 32 52 β β 20 β 12 32 52 β
β 21 β 12 32 52 β β 21 β 12 32 52 β β 21 β 12 32 52 β
β 22 β 12 32 47 β β 22 β 12 32 47 β β 22 β 12 32 47 β
β 23 β 07 β β 23 β 07 β β 23 β 07 β
ββββββ΄ββββββββββββββββββββ ββββββ΄ββββββββββββββββββββ ββββββ΄ββββββββββββββββββββ