| Crates.io | slq |
| lib.rs | slq |
| version | 0.4.1 |
| created_at | 2025-11-02 12:49:08.10086+00 |
| updated_at | 2025-11-02 18:34:53.702962+00 |
| description | Search stockholms lokaltrafik for stations and times in the command line |
| homepage | |
| repository | https://github.com/divanvisagie/slq |
| max_upload_size | |
| id | 1913099 |
| size | 1,555,488 |
A CLI tool for querying Storstockholms Lokaltrafik (SL) information.
|[][SL][][] \
oo---=--oo |
System-wide installation:
cargo install slq
This will build the project and install slq using cargo install.
Quick Demo:
# Search for stations
$ slq search "taby centrum"
Täby centrum 9669
$ slq departures "T-Centralen" -t metro -l 14
Departures from T-Centralen:
1m 19:23 14 Metro Mörby centrum
7m 19:29 14 Metro Fruängen
11m 19:32 14 Metro Mörby centrum
11m 19:33 14 Metro Mörby centrum
17m 19:39 14 Metro Fruängen
27m 19:49 14 Metro Fruängen
Search for stations by name. Returns tab-delimited output with station names and IDs, suitable for shell scripting
Usage: slq search <STATION_NAME>
Arguments: <STATION_NAME> Station name
Options:
-h, --help Print help
Usage: slq departures [OPTIONS] <STATION_NAME>
Arguments: <STATION_NAME> Station name or identifier
Options:
-l, --line <LINE>
Filter by line number. Base line numbers (e.g., "28") will include variants like "28s"). Specific variants can be filtered with exact matches, sho if you search for "28s" you will only get that result-c, --count <COUNT>
Maximum number of departures to show-d, --destination <DESTINATION>
Filter results by their destination-t, --transport-mode <TRANSPORT_MODE>
Filter by transport type possible values: bus, tram, metro, train, ferry, ship, taxi-h, --help
Print helphttps://transport.integration.sl.se/v1/sites - Station directoryhttps://transport.integration.sl.se/v1/sites/{id}/departures - Real-time departuresNo API key required for these endpoints.
This project is licensed under the BSD 3-Clause License - see the LICENSE file for details.