https://github.com/dragonchaser/go-ril100
A quick and dirty hacked tool to query RIL100/DS100 abbreviations from the DB (Deutsche Bahn) in Germany.
https://github.com/dragonchaser/go-ril100
bahn ds100 railway ril100 train
Last synced: over 1 year ago
JSON representation
A quick and dirty hacked tool to query RIL100/DS100 abbreviations from the DB (Deutsche Bahn) in Germany.
- Host: GitHub
- URL: https://github.com/dragonchaser/go-ril100
- Owner: dragonchaser
- License: apache-2.0
- Created: 2022-01-13T12:55:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-13T13:51:20.000Z (over 4 years ago)
- Last Synced: 2025-01-30T08:30:59.738Z (over 1 year ago)
- Topics: bahn, ds100, railway, ril100, train
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ril100
A quick and dirty hacked tool to query RIL100/DS100 abbreviations from the DB
(Deutsche Bahn) in Germany.
## usage
### text output
```
$> go-ril100 DFL
```
#### result
```
Name : Flöha
Type : station
Address :
Street : Bahnhofstr. 2a
City : 09557 Flöha
Location :
Latitude :50.854355
Longitude :13.075152
```
### json output
```
$> go-ril100 DFL --json |jq
```
**Note:** jq is optional, just beautifies the output in our case.
#### result
```
{
"type": "station",
"name": "Flöha",
"address": {
"city": "Flöha",
"zipcode": "09557",
"street": "Bahnhofstr. 2a"
},
"location": {
"latitude": 50.854355,
"longitude": 13.075152
}
}
```
## building
just run `$> make`