Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hauke96/db-route-finder
A simple tools helping to find optimal routes using the DB (Deutsche Bahn) API.
https://github.com/hauke96/db-route-finder
bahn deutsche-bahn journey routing travel
Last synced: about 1 month ago
JSON representation
A simple tools helping to find optimal routes using the DB (Deutsche Bahn) API.
- Host: GitHub
- URL: https://github.com/hauke96/db-route-finder
- Owner: hauke96
- License: gpl-3.0
- Created: 2021-12-04T11:49:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-14T10:42:50.000Z (about 3 years ago)
- Last Synced: 2024-04-16T00:19:47.241Z (9 months ago)
- Topics: bahn, deutsche-bahn, journey, routing, travel
- Language: TypeScript
- Homepage:
- Size: 266 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DB Route Finder
A tool to find optiomaoptimal routes from A to B and B to A.
An optimal route should fulfill certain properties:
* All journeys should happen on the same day (A to B and back B to A on the same day)
* The time at B (so between arriving at B and departing from B) should be sufficient (currently at least 5 hours)
* The price should be minimal
* The exact departure and arrival times are irrelevant as long as all above properties are fulfilled# Getting started
1. Clone this repo
2. Install dependencies: `npm i`# Usage
`npm run start `
* `from`: The Station name where your journey starts.
* `from-departure`: The earliest time you are willing to depart.
* `to`: The Station you want to go to.
* `to-departure`: Optional: The earliest time you want to head back home. If not present, the `from-departure` day will be used at 4pm.## Example
`npm run start "Hamburg Hbf" "2021-12-14 07:23" Fulda "2021-12-14 14:50"`
`npm run start "Hamburg Hbf" "2021-12-14 07:23" Fulda` which is equivalent to `npm run start "Hamburg Hbf" "2021-12-14 07:23" Fulda "2021-12-14 16:00"`
## Help
To print helping information:
`npm run start -- --help`