rejseplanen
Query Danish public transport departures, arrivals, and journey planning via Rejseplanen API
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
Rejseplanen - Danish Public Transport
Query real-time train and bus departures, arrivals, and plan journeys via the Rejseplanen API.
Commands
Search for stations
node {baseDir}/dist/rejseplanen.js search "København"
Departures
node {baseDir}/dist/rejseplanen.js departures Odense
node {baseDir}/dist/rejseplanen.js departures Odense --trains
node {baseDir}/dist/rejseplanen.js departures Odense --trains --to Aalborg
Arrivals
node {baseDir}/dist/rejseplanen.js arrivals Aalborg
node {baseDir}/dist/rejseplanen.js arrivals Aalborg --trains --from Odense
Trip planning
node {baseDir}/dist/rejseplanen.js trip Odense Aalborg
node {baseDir}/dist/rejseplanen.js trip Odense "Aalborg Vestby" --time 07:00
Journey details
Show all stops for a specific train:
node {baseDir}/dist/rejseplanen.js journey Odense 75
Options
-
--trains- Show only trains -
--buses- Show only buses -
--to <station>- Filter departures by destination -
--from <station>- Filter arrivals by origin -
--time HH:MM- Departures after specified time -
--output json|text- Output format (default: text) -
--json- Shorthand for--output json
JSON output
For programmatic parsing, use --json:
node {baseDir}/dist/rejseplanen.js departures Odense --json
Tips
- Use
searchto find station IDs, then store frequently used ones for faster lookups - Station IDs can be used directly instead of names (e.g.,
008600512for Odense)
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-30
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!