From 57511081c48ffd512264c82d5a39f1e228f0f27b Mon Sep 17 00:00:00 2001 From: Martin Eberhardt Date: Wed, 31 Jul 2019 18:50:51 +0200 Subject: [PATCH] Update Rejseplanen documentation for HA PR #25375 (#9939) * Update Rejseplanen documentation for HA PR #25375 * Remove double newline at end of file --- source/_components/rejseplanen.markdown | 33 +++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/source/_components/rejseplanen.markdown b/source/_components/rejseplanen.markdown index cdfa7f78a64..03bee9fefbc 100644 --- a/source/_components/rejseplanen.markdown +++ b/source/_components/rejseplanen.markdown @@ -20,9 +20,9 @@ If you know the exact name of the stop you can search the stop_id with the follo If you don't know the name of the stop follow this guide: - Go to [https://www.openstreetmap.org](https://www.openstreetmap.org) -- Make a search and fill in the location you want to find for. +- Make a search and fill in the location you want to find for. - The url will look like this [https://www.openstreetmap.org/#map=18/56.15756/10.20674](https://www.openstreetmap.org/#map=18/56.15756/10.20674) -- Now insert the coordinates for the location in the url, in this example it will be: [http://xmlopen.rejseplanen.dk/bin/rest.exe/stopsNearby?coordX=56.15756&coordY=10.20674&](http://xmlopen.rejseplanen.dk/bin/rest.exe/stopsNearby?coordX=56.15756&coordY=10.20674&) +- Now insert the coordinates for the location in the url, in this example it will be: [http://xmlopen.rejseplanen.dk/bin/rest.exe/stopsNearby?coordX=56.15756&coordY=10.20674&](http://xmlopen.rejseplanen.dk/bin/rest.exe/stopsNearby?coordX=56.15756&coordY=10.20674&) - You will now see the 30 stops closest to your location. You will se a output like this: @@ -118,7 +118,36 @@ The sensor can filter the timetables by one or more routes, directions and types |--------------|-------------| | BUS | Normal bus | | EXB | Express bus | +| TB | Harbour bus| | LET | Letbanen | | M | Metro | | S | S-train | | REG | Regional train | +| IC | Intercity train | +| LYN | Intercity express train | +| TOG | Other trains | + +## Attributes + +| Attribute | Description | +| ------------ | -------------------------------------- | +| `due_in` | Minutes until departure | +| `due_at` | Departure date and time | +| `type` | Transport type | +| `route` | Route code | +| `direction` | Destination stop | +| `stop` | Departure stop | +| `stop_id` | ID of departure stop | +| `attribution` | Attribution (required by data source) | +| `next_departures` | List of further departures | + +### `next_departures` + +| Attribute | Description | +| ------------ | -------------------------------------- | +| `due_in` | Minutes until departure | +| `due_at` | Departure date and time | +| `type` | Transport type | +| `route` | Route code | +| `direction` | Destination stop | +| `stop` | Departure stop |