Awesome
db-hafas-rest
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
.
Installation
npm install db-hafas-rest
GET /locations
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'
Similar Projects
- db-hafas – "JavaScript client for the DB HAFAS API."
- db-prices – " Find the cheapest routes using the DB Sparpreise API."
Contributing
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.