This endpoint will find the fastest route (it may mean a detour) and the second fastest route (if configured for certain segments) using Dijkstra algorithm.
Routes can be configured to include any type of path objects (lifts, buses, hiking trails, slopes, ...).
For searches on current day, the routing will not only take into account the schedule, but also the state values of transport facilities.
route
GET
-
Id of start point (see stop points).
from=2
Id of end point (see stop points).
to=3
Optional start time of journey (default is now).
date=2022-01-20 15:50
Optional language (default is german).
lang=de|fr|en|it
Entity | Type | Values | Description |
---|---|---|---|
startDate | datetime | YYYY-MM-DD HH:MM | start date/time of journey |
startPoint | string | any valid value | name of starting point |
endPoint | string | any valid value | name of end point |
routes[] | array | routes | list of found routes |
prevDate | datetime | YYYY-MM-DD HH:MM | date/time for previous result page |
nextDate | datetime | YYYY-MM-DD HH:MM | date/time for previous result page |
Entity | Type | Values | Description |
---|---|---|---|
id | int | any valid value | route identifier (unique for the current resultset only) |
departure | time | HH:MM | departure time |
arrival | time | HH:MM | arrival time |
duration | int | any valid value | time of travel in minutes |
changeOver | int | any valid value | number of change overs |
segments[] | array | segments | list of segments for this journey |
Entity | Type | Values | Description |
---|---|---|---|
stopPoint | string | any valid value | name of stop point |
departure | time | HH:MM | time of departure |
arrival | time | HH:MM | time of arrival (for last stop point only) |
duration | int | any valid value | travel time in minutes (not for last stop point) |
transportType | int | facility types | type of transporation facility (not for last stop point) |
transportName | string | any valid value | name of transporation facility (not for last stop point) |
transportKey | string | any valid value | user key for facility (not for last stop point) |
stopOnDemand | boolean | any valid value | stop on demand only (not for last stop point) |
continuousOperation | boolean | any valid value | facility operates continuously (only available if true) |
remarks[] | array | remarks | remarks |
Entity | Type | Values | Description |
---|---|---|---|
de | string | any valid value | german |
fr | string | any valid value | french |
en | string | any valid value | english |
it | string | any valid value | italian |
{ "startDate": "2022-01-20 15:50", "startPoint": "Betten Talstation, Bahn", "endPoint": "Betten Dorf, Talstation H2", "routes": [{ "id": 1, "departure": "16:01", "arrival": "16:07", "duration": 6, "changeOver": 0, "segments": [{ "stopPoint": "Betten Talstation, Bahn", "departure": "16:01", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Talstation, H1", "departure": "16:02", "duration": 4, "transportType": 10, "transportName": "Betten Talstation \u2013 Betten Dorf", "transportKey": "H1" }, { "stopPoint": "Betten Dorf, Bergstation H1", "departure": "16:06", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Dorf, Talstation H2", "arrival": "16:07" }] }, { "id": 2, "departure": "16:31", "arrival": "16:37", "duration": 6, "changeOver": 0, "segments": [{ "stopPoint": "Betten Talstation, Bahn", "departure": "16:31", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Talstation, H1", "departure": "16:32", "duration": 4, "transportType": 10, "transportName": "Betten Talstation \u2013 Betten Dorf", "transportKey": "H1" }, { "stopPoint": "Betten Dorf, Bergstation H1", "departure": "16:36", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Dorf, Talstation H2", "arrival": "16:37" }] }, { "id": 3, "departure": "17:01", "arrival": "17:07", "duration": 6, "changeOver": 0, "segments": [{ "stopPoint": "Betten Talstation, Bahn", "departure": "17:01", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Talstation, H1", "departure": "17:02", "duration": 4, "transportType": 10, "transportName": "Betten Talstation \u2013 Betten Dorf", "transportKey": "H1" }, { "stopPoint": "Betten Dorf, Bergstation H1", "departure": "17:06", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Dorf, Talstation H2", "arrival": "17:07" }] }, { "id": 4, "departure": "17:31", "arrival": "17:37", "duration": 6, "changeOver": 0, "segments": [{ "stopPoint": "Betten Talstation, Bahn", "departure": "17:31", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Talstation, H1", "departure": "17:32", "duration": 4, "transportType": 10, "transportName": "Betten Talstation \u2013 Betten Dorf", "transportKey": "H1" }, { "stopPoint": "Betten Dorf, Bergstation H1", "departure": "17:36", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Dorf, Talstation H2", "arrival": "17:37" }] }, { "id": 5, "departure": "18:01", "arrival": "18:07", "duration": 6, "changeOver": 0, "segments": [{ "stopPoint": "Betten Talstation, Bahn", "departure": "18:01", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Talstation, H1", "departure": "18:02", "duration": 4, "transportType": 10, "transportName": "Betten Talstation \u2013 Betten Dorf", "transportKey": "H1" }, { "stopPoint": "Betten Dorf, Bergstation H1", "departure": "18:06", "duration": 1, "transportType": 12, "transportName": "Fussweg" }, { "stopPoint": "Betten Dorf, Talstation H2", "arrival": "18:07" }] }], "prevDate": "2022-01-20 00:00", "nextDate": "2022-01-20 18:01" }