Obs: Detta innehåll finns inte tillgängligt på svenska. Därför ser du engelska versionen. Om du tycker att denna sida borde översättas till svenska, kan du skriva till oss på support.trafiklab.se.

Om du vill se webbsidan på engelska, klicka här.

What does this API provide?

ResRobot Timetables provides a list of departures or arrivals at a given stop. Users can specify the stop, date, time, transport modes, … . Realtime data is available for SL and Trafikverket (All train traffic including SJ, MTRX, …. except for Arlanda Express).

Data format

The data is formatted as JSON or XML, depending on the format query parameter.

Updates

The static data used for this API is updated when changes are made, at most once per day. Real-time data is updated once every minute.

Operators covered by this dataset

All operators which operate in Sweden are covered by the ResRobot APIs.

Breaking changes

This API has the stable status. When breaking changes are made, we strive to have a 6 months transition period for users to update their implementations. Examples of breaking changes are the changes to existing fields or query parameters, or in case new query parameters are required to keep the results the same. The addition of new fields isn’t considered a breaking change, and can happen without warning.

Using ResRobot Timetables

ResRobot Timetables consists of two different endpoints, one for departures and one for arrivals. Both endpoints take exactly the same parameters and have the same response structure. API Calls take the stop id as a parameter, as well as some other parameters to fine-tune the results. It returns a list of departures or arrivals from the given stop, including a bit of information about each vehicle, such as where it is heading or where it comes from.

Only the most important parameters and response variables are described on this page. Looking for more technical details? These can be found in the OpenAPI specification.

Example call

This call will show all departures from Göteborg Central Station (740000002). The id can be obtained from ResRobot Stop lookup or GTFS Sverige 2.

Call

Departures

1https://api.resrobot.se/v2.1/departureBoard?id=740000002&format=json&accessId=API_KEY
1https://api.resrobot.se/v2.1/departureBoard?id=740000002&format=xml&accessId=API_KEY

Arrivals

1https://api.resrobot.se/v2.1/arrivalBoard?id=740000002&format=json&accessId=API_KEY
1https://api.resrobot.se/v2.1/arrivalBoard?id=740000002&format=xml&accessId=API_KEY

Request parameters

Changes compared to ResRobot v2.0:

  • The key parameter has been renamed to accessId.
  • maxJourneys is ignored when making queries in the near past or future, when realtime data is available. We recommend using the new duration parameter to consistently limit the results list to a specific time window.
  • passlist is now 0 by default. Set to 1 to keep the responses the same if you need this data.
NameData typeRequiredDescription
accessIdStringYesYour API key
idStringYesStop id to search a route from. Can be obtained from the Stop lookup API, Nearby stops API, or GTFS Sverige 2.
directionStringNo, default unspecifiedFilter on vehicles heading towards a certain stop. Id of the stop which included vehicles should be heading to.
dateDate (YYYY-MM-DD)No, default todaySearch on a specific date, specified in YYYY-MM-DD format, e.g. 2021-12-31.
You can only search for dates within the timetable period.
timeTime (HH:MM)No, default nowSearch on a specific time, specified in HH:MM format, e.g. 19:06.
durationIntegerNo, default 60Set the interval size in minutes. Only departures or arrivals within this interval, starting from the defined date and time, will be returned..
maxJourneysIntegerNo, default -1The maximum number of results to return.
operatorsStringNo, default allOnly include traffic from certain operators
Example: operators=275,287
(275=SL, 287=Arlanda Express)
productsIntegerNo, default allOnly include certain traffic modes, see common request products
passlistIntegerNo, default 0Set to 1 to include a list of the stops which are passed on the route of a vehicle. 0 to leave the list out of the result.
langString (sv/en/de)No, default svLanguage to use in the response. Affects both data (names for different transport types) and error messages.
formatStringNo, default xmlThe response format, json or XML.

Response

För en exakt teknisk beskrivning av varje fält i svaret hanvisar vi till vår OpenAPI dokumentation.

Note that an actual response contains more entries and stops - we removed some from this example response since it’s only meant to show the structure of the response.
  1{
  2  "Departure": [
  3    {
  4      "Product": {
  5        "name": "Länstrafik - Buss Grön X",
  6        "num": "Grön X",
  7        "catCode": "7",
  8        "catOutS": "BLT",
  9        "catOutL": "Länstrafik - Buss",
 10        "operatorCode": "279",
 11        "operator": "Västtrafik",
 12        "operatorUrl": "http://www.vasttrafik.se/"
 13      },
 14      "Stops": {
 15        "Stop": [
 16          {
 17            "name": "Göteborg Nordstan",
 18            "id": "740015585",
 19            "extId": "740015585",
 20            "routeIdx": 7,
 21            "lon": 11.970791,
 22            "lat": 57.709246,
 23            "depTime": "11:31:00",
 24            "depDate": "2020-06-02"
 25          },
 26          {
 27            "name": "Göteborg Heden",
 28            "id": "740015568",
 29            "extId": "740015568",
 30            "routeIdx": 8,
 31            "lon": 11.975169,
 32            "lat": 57.702567,
 33            "arrTime": "11:36:00",
 34            "arrDate": "2020-06-02"
 35          },
 36          {
 37            "name": "Sommarhemsvägen (Härryda kn)",
 38            "id": "740061214",
 39            "extId": "740061214",
 40            "routeIdx": 27,
 41            "lon": 12.135186,
 42            "lat": 57.653711,
 43            "arrTime": "12:09:00",
 44            "arrDate": "2020-06-02"
 45          },
 46          {
 47            "name": "Mölnlycke Häggvägen (Härryda kn)",
 48            "id": "740015972",
 49            "extId": "740015972",
 50            "routeIdx": 28,
 51            "lon": 12.138134,
 52            "lat": 57.657756,
 53            "arrTime": "12:13:00",
 54            "arrDate": "2020-06-02"
 55          }
 56        ]
 57      },
 58      "name": "Länstrafik - Buss Grön X",
 59      "type": "S",
 60      "stop": "Göteborg Nordstan",
 61      "stopid": "740015585",
 62      "stopExtId": "740015585",
 63      "time": "11:31:00",
 64      "date": "2020-06-02",
 65      "direction": "Mölnlycke Häggvägen (Härryda kn)",
 66      "transportNumber": "Grön X",
 67      "transportCategory": "BLT"
 68    },
 69    {
 70      "Product": {
 71        "name": "Länstrafik - Buss 519",
 72        "num": "519",
 73        "catCode": "7",
 74        "catOutS": "BLT",
 75        "catOutL": "Länstrafik - Buss",
 76        "operatorCode": "279",
 77        "operator": "Västtrafik",
 78        "operatorUrl": "http://www.vasttrafik.se/"
 79      },
 80      "Stops": {
 81        "Stop": [
 82          {
 83            "name": "Göteborg Polhemsplatsen",
 84            "id": "740059478",
 85            "extId": "740059478",
 86            "routeIdx": 1,
 87            "lon": 11.977317,
 88            "lat": 57.70832,
 89            "depTime": "11:31:00",
 90            "depDate": "2020-06-02"
 91          },
 92          {
 93            "name": "Göteborg Svingeln",
 94            "id": "740015597",
 95            "extId": "740015597",
 96            "routeIdx": 2,
 97            "lon": 11.991008,
 98            "lat": 57.712536,
 99            "arrTime": "11:35:00",
100            "arrDate": "2020-06-02"
101          }
102          {
103            "name": "Partille centrum",
104            "id": "740015667",
105            "extId": "740015667",
106            "routeIdx": 14,
107            "lon": 12.105252,
108            "lat": 57.738623,
109            "arrTime": "11:57:00",
110            "arrDate": "2020-06-02"
111          }
112        ]
113      },
114      "name": "Länstrafik - Buss 519",
115      "type": "S",
116      "stop": "Göteborg Polhemsplatsen",
117      "stopid": "740059478",
118      "stopExtId": "740059478",
119      "time": "11:31:00",
120      "date": "2020-06-02",
121      "direction": "Partille centrum",
122      "transportNumber": "519",
123      "transportCategory": "BLT"
124    },
125    {
126      "Product": {
127        "name": "Länstrafik - Buss Blå Ex",
128        "num": "Blå Ex",
129        "catCode": "7",
130        "catOutS": "BLT",
131        "catOutL": "Länstrafik - Buss",
132        "operatorCode": "279",
133        "operator": "Västtrafik",
134        "operatorUrl": "http://www.vasttrafik.se/"
135      },
136      "Stops": {
137        "Stop": [
138          {
139            "name": "Göteborg Polhemsplatsen",
140            "id": "740059478",
141            "extId": "740059478",
142            "routeIdx": 15,
143            "lon": 11.977317,
144            "lat": 57.70832,
145            "depTime": "11:31:00",
146            "depDate": "2020-06-02"
147          },
148          {
149            "name": "Heden Nya Allén (Göteborg kn)",
150            "id": "740074042",
151            "extId": "740074042",
152            "routeIdx": 16,
153            "lon": 11.972472,
154            "lat": 57.702585,
155            "arrTime": "11:34:00",
156            "arrDate": "2020-06-02"
157          },
158          {
159            "name": "Pilgatan (Göteborg kn)",
160            "id": "740062991",
161            "extId": "740062991",
162            "routeIdx": 17,
163            "lon": 11.96031,
164            "lat": 57.696751,
165            "arrTime": "11:38:00",
166            "arrDate": "2020-06-02"
167          },
168          {
169            "name": "Särö centrum (Kungsbacka kn)",
170            "id": "740075576",
171            "extId": "740075576",
172            "routeIdx": 29,
173            "lon": 11.96511,
174            "lat": 57.52085,
175            "arrTime": "12:12:00",
176            "arrDate": "2020-06-02"
177          }
178        ]
179      },
180      "name": "Länstrafik - Buss Blå Ex",
181      "type": "S",
182      "stop": "Göteborg Polhemsplatsen",
183      "stopid": "740059478",
184      "stopExtId": "740059478",
185      "time": "11:31:00",
186      "date": "2020-06-02",
187      "direction": "Särö centrum (Kungsbacka kn)",
188      "transportNumber": "Blå Ex",
189      "transportCategory": "BLT"
190    }
191  ]
192}
 1<?xml version="1.0" encoding="UTF-8"?>
 2<DepartureBoard xmlns="hafas_rest_v1">
 3    <Departure direction="Göteborg Eketrägatan" name="Länstrafik - Buss 16" transportNumber="16" transportCategory="BLT" type="S" stopid="740015585" stopExtId="740015585" stop="Göteborg Nordstan" date="2020-06-02" time="11:29:00">
 4        <Product catCode="7" catOutL="Länstrafik - Buss" catOutS="BLT" name="Länstrafik - Buss 16" num="16" operator="Västtrafik" operatorCode="279" operatorUrl="http://www.vasttrafik.se/"/>
 5        <Stops>
 6            <Stop depDate="2020-06-02" depTime="11:29:00" routeIdx="12" name="Göteborg Nordstan" id="740015585" extId="740015585" lon="11.970791" lat="57.709246"/>
 7            <Stop arrDate="2020-06-02" arrTime="11:33:00" routeIdx="13" name="Frihamnsporten (Göteborg kn)" id="740072023" extId="740072023" lon="11.959528" lat="57.718208"/>
 8            <Stop arrDate="2020-06-02" arrTime="11:35:00" routeIdx="14" name="Pumpgatan (Göteborg kn)" id="740059497" extId="740059497" lon="11.946152" lat="57.712725"/>
 9            <Stop arrDate="2020-06-02" arrTime="11:36:00" routeIdx="15" name="Regnbågsgatan (Göteborg kn)" id="740059509" extId="740059509" lon="11.942754" lat="57.710774"/>
10            <Stop arrDate="2020-06-02" arrTime="11:38:00" routeIdx="16" name="Lindholmen (Göteborg kn)" id="740059410" extId="740059410" lon="11.938052" lat="57.708104"/>
11            <Stop arrDate="2020-06-02" arrTime="11:38:00" routeIdx="17" name="Sannegårdshamnen (Göteborg kn)" id="740059537" extId="740059537" lon="11.930816" lat="57.70779"/>
12            <Stop arrDate="2020-06-02" arrTime="11:40:00" routeIdx="18" name="Nordviksgatan (Göteborg kn)" id="740059465" extId="740059465" lon="11.922061" lat="57.707017"/>
13            <Stop arrDate="2020-06-02" arrTime="11:41:00" routeIdx="19" name="Sörhallstorget (Göteborg kn)" id="740059197" extId="740059197" lon="11.919642" lat="57.703106"/>
14            <Stop arrDate="2020-06-02" arrTime="11:43:00" routeIdx="20" name="Eriksbergstorget (Göteborg kn)" id="740059199" extId="740059199" lon="11.913233" lat="57.702342"/>
15            <Stop arrDate="2020-06-02" arrTime="11:44:00" routeIdx="21" name="Danaplatsen (Göteborg kn)" id="740059175" extId="740059175" lon="11.912954" lat="57.705039"/>
16            <Stop arrDate="2020-06-02" arrTime="11:46:00" routeIdx="22" name="Säterigatan (Göteborg kn)" id="740059623" extId="740059623" lon="11.918375" lat="57.709138"/>
17            <Stop arrDate="2020-06-02" arrTime="11:47:00" routeIdx="23" name="Lundby Gamla Kyrka (Göteborg kn)" id="740059420" extId="740059420" lon="11.915939" lat="57.712806"/>
18            <Stop arrDate="2020-06-02" arrTime="11:50:00" routeIdx="24" name="Göteborg Eketrägatan" id="740025624" extId="740025624" lon="11.910285" lat="57.716275"/>
19        </Stops>
20    </Departure>
21    <Departure direction="Landvetter Airport (Härryda kn)" name="Flygtransfer - Buss ." transportNumber="." transportCategory="BAX" type="S" stopid="740020483" stopExtId="740020483" stop="Göteborg Nils Ericsonterminal" date="2020-06-02" time="11:30:00">
22        <Product catCode="3" catOutL="Flygtransfer - Buss" catOutS="BAX" name="Flygtransfer - Buss ." num="." operator="Flygbussarna" operatorCode="277" operatorUrl="http://www.flygbussarna.se"/>
23        <Stops>
24            <Stop depDate="2020-06-02" depTime="11:30:00" routeIdx="0" name="Göteborg Nils Ericsonterminal" id="740020483" extId="740020483" lon="11.971852" lat="57.710271"/>
25            <Stop arrDate="2020-06-02" arrTime="11:58:00" routeIdx="4" name="Hangarvägen (Härryda kn)" id="740061273" extId="740061273" lon="12.302709" lat="57.673694"/>
26            <Stop arrDate="2020-06-02" arrTime="12:00:00" routeIdx="5" name="Landvetter Airport (Härryda kn)" id="740000554" extId="740000554" lon="12.29594" lat="57.667878"/>
27        </Stops>
28    </Departure>
29    <Departure direction="Kärra Klareberg (Göteborg kn)" name="Länstrafik - Buss Rosa X" transportNumber="Rosa X" transportCategory="BLT" type="S" stopid="740015585" stopExtId="740015585" stop="Göteborg Nordstan" date="2020-06-02" time="11:30:00">
30        <Product catCode="7" catOutL="Länstrafik - Buss" catOutS="BLT" name="Länstrafik - Buss Rosa X" num="Rosa X" operator="Västtrafik" operatorCode="279" operatorUrl="http://www.vasttrafik.se/"/>
31        <Stops>
32            <Stop depDate="2020-06-02" depTime="11:30:00" routeIdx="25" name="Göteborg Nordstan" id="740015585" extId="740015585" lon="11.970791" lat="57.709246"/>
33            <Stop arrDate="2020-06-02" arrTime="11:35:00" routeIdx="26" name="Göteborg Hjalmar Brantingspl" id="740015569" extId="740015569" lon="11.953676" lat="57.720833"/>
34            <Stop arrDate="2020-06-02" arrTime="11:43:00" routeIdx="27" name="Kärraporten (Göteborg kn)" id="740050830" extId="740050830" lon="11.99463" lat="57.787884"/>
35            <Stop arrDate="2020-06-02" arrTime="11:45:00" routeIdx="28" name="Lillekärr Södra (Göteborg kn)" id="740059406" extId="740059406" lon="11.990531" lat="57.789241"/>
36            <Stop arrDate="2020-06-02" arrTime="11:46:00" routeIdx="29" name="Kärra Kyrka (Göteborg kn)" id="740059383" extId="740059383" lon="11.991268" lat="57.792001"/>
37            <Stop arrDate="2020-06-02" arrTime="11:47:00" routeIdx="30" name="Kärra Centrum (Göteborg kn)" id="740059386" extId="740059386" lon="11.990873" lat="57.794284"/>
38            <Stop arrDate="2020-06-02" arrTime="11:48:00" routeIdx="31" name="Lillekärr Norra (Göteborg kn)" id="740059405" extId="740059405" lon="11.990729" lat="57.796118"/>
39            <Stop arrDate="2020-06-02" arrTime="11:49:00" routeIdx="32" name="Burmans Gata (Göteborg kn)" id="740059154" extId="740059154" lon="11.990316" lat="57.798203"/>
40            <Stop arrDate="2020-06-02" arrTime="11:51:00" routeIdx="33" name="Kärra Klareberg (Göteborg kn)" id="740015575" extId="740015575" lon="11.991808" lat="57.800163"/>
41        </Stops>
42    </Departure>
43    <Departure direction="Hinnebäcksgatan (Göteborg kn)" name="Länstrafik - Buss 17" transportNumber="17" transportCategory="BLT" type="S" stopid="740015585" stopExtId="740015585" stop="Göteborg Nordstan" date="2020-06-02" time="11:30:00">
44        <Product catCode="7" catOutL="Länstrafik - Buss" catOutS="BLT" name="Länstrafik - Buss 17" num="17" operator="Västtrafik" operatorCode="279" operatorUrl="http://www.vasttrafik.se/"/>
45        <Stops>
46            <Stop depDate="2020-06-02" depTime="11:30:00" routeIdx="14" name="Göteborg Nordstan" id="740015585" extId="740015585" lon="11.970791" lat="57.709246"/>
47            <Stop arrDate="2020-06-02" arrTime="11:35:00" routeIdx="15" name="Göteborg Hjalmar Brantingspl" id="740015569" extId="740015569" lon="11.953676" lat="57.720833"/>
48            <Stop arrDate="2020-06-02" arrTime="11:37:00" routeIdx="16" name="Göteborg Vågmästareplatsen" id="740025706" extId="740025706" lon="11.945037" lat="57.720671"/>
49            <Stop arrDate="2020-06-02" arrTime="11:38:00" routeIdx="17" name="Swedenborgsplatsen (Göteborg kn)" id="740059614" extId="740059614" lon="11.94519" lat="57.726631"/>
50            <Stop arrDate="2020-06-02" arrTime="11:40:00" routeIdx="18" name="Björnsonsgatan (Göteborg kn)" id="740059135" extId="740059135" lon="11.944614" lat="57.729535"/>
51            <Stop arrDate="2020-06-02" arrTime="11:41:00" routeIdx="19" name="Hildedalsgatan (Göteborg kn)" id="740059296" extId="740059296" lon="11.942502" lat="57.732321"/>
52            <Stop arrDate="2020-06-02" arrTime="11:41:00" routeIdx="20" name="Bäckedalsvägen (Göteborg kn)" id="740059162" extId="740059162" lon="11.942151" lat="57.734649"/>
53            <Stop arrDate="2020-06-02" arrTime="11:44:00" routeIdx="21" name="Grimbo (Göteborg kn)" id="740059258" extId="740059258" lon="11.940318" lat="57.741913"/>
54            <Stop arrDate="2020-06-02" arrTime="11:46:00" routeIdx="22" name="Gunnesgärde (Göteborg kn)" id="740059269" extId="740059269" lon="11.933297" lat="57.748906"/>
55            <Stop arrDate="2020-06-02" arrTime="11:48:00" routeIdx="23" name="Brunnehagen (Göteborg kn)" id="740059148" extId="740059148" lon="11.92847" lat="57.750695"/>
56            <Stop arrDate="2020-06-02" arrTime="11:48:00" routeIdx="24" name="Tuve Centrum (Göteborg kn)" id="740059661" extId="740059661" lon="11.928389" lat="57.754246"/>
57            <Stop arrDate="2020-06-02" arrTime="11:50:00" routeIdx="25" name="Norumsgärde (Göteborg kn)" id="740059471" extId="740059471" lon="11.924488" lat="57.758048"/>
58            <Stop arrDate="2020-06-02" arrTime="11:51:00" routeIdx="26" name="Norumshöjd (Göteborg kn)" id="740059472" extId="740059472" lon="11.919804" lat="57.756385"/>
59            <Stop arrDate="2020-06-02" arrTime="11:53:00" routeIdx="27" name="Hinnebäcksgatan (Göteborg kn)" id="740059298" extId="740059298" lon="11.917314" lat="57.752142"/>
60        </Stops>
61    </Departure>
62    <Departure direction="Mölnlycke Häggvägen (Härryda kn)" name="Länstrafik - Buss Grön X" transportNumber="Grön X" transportCategory="BLT" type="S" stopid="740015585" stopExtId="740015585" stop="Göteborg Nordstan" date="2020-06-02" time="11:31:00">
63        <Product catCode="7" catOutL="Länstrafik - Buss" catOutS="BLT" name="Länstrafik - Buss Grön X" num="Grön X" operator="Västtrafik" operatorCode="279" operatorUrl="http://www.vasttrafik.se/"/>
64        <Stops>
65            <Stop depDate="2020-06-02" depTime="11:31:00" routeIdx="7" name="Göteborg Nordstan" id="740015585" extId="740015585" lon="11.970791" lat="57.709246"/>
66            <Stop arrDate="2020-06-02" arrTime="11:36:00" routeIdx="8" name="Göteborg Heden" id="740015568" extId="740015568" lon="11.975169" lat="57.702567"/>
67            <Stop arrDate="2020-06-02" arrTime="11:38:00" routeIdx="9" name="Göteborg Berzeliigatan" id="740025610" extId="740025610" lon="11.981884" lat="57.698504"/>
68            <Stop arrDate="2020-06-02" arrTime="11:41:00" routeIdx="10" name="Göteborg Korsvägen" id="740015578" extId="740015578" lon="11.986909" lat="57.696625"/>
69            <Stop arrDate="2020-06-02" arrTime="11:44:00" routeIdx="11" name="Delsjömotet (Göteborg kn)" id="740022706" extId="740022706" lon="12.025706" lat="57.676786"/>
70            <Stop arrDate="2020-06-02" arrTime="11:48:00" routeIdx="12" name="Mölnlyckemotet (Härryda kn)" id="740072738" extId="740072738" lon="12.090806" lat="57.670134"/>
71            <Stop arrDate="2020-06-02" arrTime="11:50:00" routeIdx="13" name="Mölnlycke Råda Portar (Härryda kn)" id="740015970" extId="740015970" lon="12.097269" lat="57.668327"/>
72            <Stop arrDate="2020-06-02" arrTime="11:51:00" routeIdx="14" name="Platåvägen (Härryda kn)" id="740061201" extId="740061201" lon="12.104793" lat="57.6675"/>
73            <Stop arrDate="2020-06-02" arrTime="11:53:00" routeIdx="15" name="Solsten (Härryda kn)" id="740061202" extId="740061202" lon="12.113827" lat="57.666961"/>
74            <Stop arrDate="2020-06-02" arrTime="11:54:00" routeIdx="16" name="Kyrkvägen (Härryda kn)" id="740061188" extId="740061188" lon="12.115023" lat="57.662106"/>
75            <Stop arrDate="2020-06-02" arrTime="11:56:00" routeIdx="17" name="Hulebäcksgymnasiet (Härryda kn)" id="740061189" extId="740061189" lon="12.117792" lat="57.659257"/>
76            <Stop arrDate="2020-06-02" arrTime="11:58:00" routeIdx="18" name="Mölnlycke station (Härryda kn)" id="740000205" extId="740000205" lon="12.117369" lat="57.656695"/>
77            <Stop arrDate="2020-06-02" arrTime="12:01:00" routeIdx="19" name="Råda stock (Härryda kn)" id="740061190" extId="740061190" lon="12.109315" lat="57.657252"/>
78            <Stop arrDate="2020-06-02" arrTime="12:02:00" routeIdx="20" name="Hönekullavägen (Härryda kn)" id="740061205" extId="740061205" lon="12.107975" lat="57.653549"/>
79            <Stop arrDate="2020-06-02" arrTime="12:03:00" routeIdx="21" name="Gitarrvägen (Härryda kn)" id="740061207" extId="740061207" lon="12.110376" lat="57.651256"/>
80            <Stop arrDate="2020-06-02" arrTime="12:03:00" routeIdx="22" name="Violinvägen (Härryda kn)" id="740061210" extId="740061210" lon="12.112515" lat="57.649378"/>
81            <Stop arrDate="2020-06-02" arrTime="12:03:00" routeIdx="23" name="Fagottvägen (Härryda kn)" id="740061209" extId="740061209" lon="12.116839" lat="57.648641"/>
82            <Stop arrDate="2020-06-02" arrTime="12:05:00" routeIdx="24" name="Råstensvägen (Härryda kn)" id="740061211" extId="740061211" lon="12.12216" lat="57.647742"/>
83            <Stop arrDate="2020-06-02" arrTime="12:07:00" routeIdx="25" name="Rullstensvägen (Härryda kn)" id="740061212" extId="740061212" lon="12.128525" lat="57.651616"/>
84            <Stop arrDate="2020-06-02" arrTime="12:08:00" routeIdx="26" name="Stenbrottet (Härryda kn)" id="740072932" extId="740072932" lon="12.12857" lat="57.653522"/>
85            <Stop arrDate="2020-06-02" arrTime="12:09:00" routeIdx="27" name="Sommarhemsvägen (Härryda kn)" id="740061214" extId="740061214" lon="12.135186" lat="57.653711"/>
86            <Stop arrDate="2020-06-02" arrTime="12:13:00" routeIdx="28" name="Mölnlycke Häggvägen (Härryda kn)" id="740015972" extId="740015972" lon="12.138134" lat="57.657756"/>
87        </Stops>
88    </Departure>
89</DepartureBoard>

Response data fields

The structure for departure and arrival boards is nearly identical. We list the most commonly used fields for both endpoints in this table. When we write departure/arrival, apply the one that matches the endpoint you’re using.

Changes compared to ResRobot v2.0:

  • The data previously found in Product can now be found in ProductAtStop
  • Product is now wrapped in an array
  • TransportNumber is no longer included. Use ProductAtStop.num or ProductAtStop.displayNumber instead.
  • JourneyStatus and JourneyDetailRef have been added
  • Type has a different meaning and different possible values. This field used to indicate the type of the departing/arriving journey, but now indicates the type of location for this departure/arrival
  • Any applications which made use of the internal ids (id and stopid) should switch over to using the public ids (extId and stopExtId) instead.
NameData typeDescription
DepartureBoard or ArrivalBoardDeparture[] or Arrival[]List of departures or arrivals.
Departure or ArrivalObject
timeStringScheduled departure/arrival time, formatted as HH:MM:SS.
dateDatumScheduled departure/arrival date, formatted as YYYY-MM-DD.
rtTimeStringRealtime departure/arrival time, formatted as HH:MM:SS.
rtDateDatumRealtime departure/arrival date, formatted as YYYY-MM-DD.
rtTrackStringRealtime track
rtDepTrackStringRealtime departure track, in case arrival and departure track aren’t identical
stopStringStop name
stopidStringInternal id, do not use
stopExtIdStringStop id
transportNumberStringLine number. Example:“19”
transportCategoryStringSee product.catOutL
nameStringTransportCategory + transportNumber
Example: ”ULT 19” (Tunnelbana linje 19)
directionStringName of the last stop on the vehicle’s trip
ProductProductSee common data types
StopsStop[]List of upcoming stops for the vehicle at this at this departure/arrival. Enabled/disabled through the passlist parameter
Stop.nameStringName of the stop
Stop.arrTimeStringArrival time at this stop, formatted as HH:MM
Stop.arrDateDateArrival time at this stop, formatted as YYYY-MM-DD
Stop.latStringStop latitude (WGS84, decimal degree), ex 59.293611
Stop.lonStringStop longitude (WGS84, decimal degree), ex 18.083056
Stop.idStringInternal id, do not use
Stop.extIdStringStop id
Stop.routeIdxIntegerZero-based index