DEPRECATED: See db-rest
instead.
A public HTTP REST API, exposing a clean interface to query Deutsche Bahn (German Railways).
The public endpoint is available at https://db-hafas.juliuste.de
.
npm install db-hafas-rest
Output from require('db-hafas').locations(…)
query
: Required. (e.g.Berlin Hbf
)
Content-Type
: application/json
curl 'https://db-hafas.juliuste.de/locations?query=Berlin%20Hbf'
- db-hafas – "JavaScript client for the DB HAFAS API."
- db-prices – " Find the cheapest routes using the DB Sparpreise API."
If you found a bug, want to propose a feature or feel the urge to complain about your life, feel free to visit the issues page.
Cheers to Jannis R for contributing.