1
0
Fork 0
No description
Find a file
2025-08-10 12:49:17 +02:00
.gitignore Initial commit 2025-08-10 12:49:17 +02:00
go.mod Initial commit 2025-08-10 12:49:17 +02:00
go.sum Initial commit 2025-08-10 12:49:17 +02:00
main.go Initial commit 2025-08-10 12:49:17 +02:00
Makefile Initial commit 2025-08-10 12:49:17 +02:00
README.md Initial commit 2025-08-10 12:49:17 +02:00

abfahrt 🚂 🚆 🚄 🚅 🚍 🚊 🚢 🚡

abfahrt is a small cli tool to find public transport connections in Switzerland. It uses routing-data from transport.opendata.ch.

Usage

Usage of abfahrt:
  -arrival
	    time is arrival time
  -date string
	    date for your journey, formated as YYYY-MM-DD (default "2025-08-10")
  -from string
	    start of your yourney
  -full
	    display full and detailed information
  -in duration
	    time offset for your yourney, for example 1h
  -time string
	    time for your journey, formated as YYYY-MM-DD (default "12:40")
  -to string
	    start of your yourney
  -transport string
	    Transportation types (comma-separated: train,tram,ship,bus,cableway)
  -via string
	    intermediate stops, separated by ','
  • At minimum, -from and -to have to be specified
  • -in can be used to make relative timeadjustments, use - to search for connections in the past
  • If only two arguments are given, they are treated as -from and -to

Install

go get go.lks.li/abfahrt@latest