Sydney public transport, in your terminal.
- A recent version of
sqlite3(tested with ≥ 3.50.2) - GTFS data: TFNSW Timetables Complete GTFS
- A
TFNSW_KEYenvironment variable set to your TFNSW Open Data Hub API key
./makedatabase.sh /path/to/unzipped/gtfsThis creates app.sqlite with GTFS data.
go build -o trip -tags 'fts5' main.go
./triptrip can be run in SSH mode to allow users to connect via ssh:
Edit defaultSSHAddr in main.go to change the port if needed.
Then build with permissions to bind to privileged ports and run in ssh mode:
go build -o trip -tags 'fts5' main.go
sudo setcap CAP_NET_BIND_SERVICE=+eip trip
./trip --ssh
# then connect from another terminal
ssh [email protected] -p your_port