https://github.com/chrisru/vlaky
🚃 Czech Train API
https://github.com/chrisru/vlaky
Last synced: about 1 month ago
JSON representation
🚃 Czech Train API
- Host: GitHub
- URL: https://github.com/chrisru/vlaky
- Owner: ChrisRu
- License: apache-2.0
- Created: 2019-12-20T19:31:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-27T19:27:32.000Z (over 6 years ago)
- Last Synced: 2025-01-25T15:30:03.120Z (over 1 year ago)
- Language: Scala
- Size: 42 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vlaky
Web scraping for zelpage.cz to turn it into an API.
## Running
This project was built using [sbt](https://www.scala-sbt.org/) and requires it for building and executing.
### Local
`$ sbt run`
### Docker
1. `$ sbt docker:publishLocal`
2. `$ docker run vlaky-api`
## API Routes
- GET `/composition/{year}/train/{identifier}`
Get train composition and details for a specific train. Train identifier format is along the lines of `cd-4725`, `rj-1032`, etc.
- GET `/departures/{station}`
Get departures for a station. Station format is just `brno` or `wien-hbf`