-
Notifications
You must be signed in to change notification settings - Fork 2
regions rnv modules stationmonitor element
Gibt ein JSON mit den nächsten Abfahrten an der gewählten Station aus.
?hafasID=116$-1
ID der Haltestelle. Zu finden in der Haltestellenliste. Welchen Nutzen $-1
hat ist noch nicht bekannt.
Dieser Parameter ist notwendig.
transportFilter=4
Filter nach Liniennummer (hier die Straßenbahn Linie 4). Dieser Parameter ist optional
time=null
Uhrzeit. Wenn null wird die aktuelle Uhrzeit verwendet. Muss gesetzt werden, 'null' ist in dem Fall aber ausreichend.
uiSource=LINE
Vermutlich reiner Trackingparameter. Gibt an, über welchen Menüpunkt der Query aufgerufen wurde. Dieser Parameter ist Optional.
Keine der Header sind notwendig, die App sendet sie dennoch.
curl 'http://rnv.the-agent-factory.de:8080/easygo2/rest/regions/rnv/modules/stationmonitor/element?hafasID=116$-1&transportFilter=4&time=null&uiSource=LINE' \
-H 'User-Agent: easy.GO Client Android v1.2.1 (Mozilla/5.0 (Linux; Android 4.4.4; Nexus 4 Build/KTU84Q) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36)' \
-H 'Accept-Language: de' \
-H 'Accept: application/json'
{
"ticker": "",
"listOfDepartures": [
{
"time": "20:04+0",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "3101812137",
"kindOfTour": "454AUS",
"positionInTour": "0",
"statusNote": "",
"lineId": "RNV004_RNV004A",
"lineLabel": "4",
"differenceTime": "10",
"foreignLine": "false",
"newsAvailable": "true"
},
{
"time": "20:34+0",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "3098212137",
"kindOfTour": "454AUS",
"positionInTour": "0",
"statusNote": "",
"lineId": "RNV004_RNV004A",
"lineLabel": "4",
"differenceTime": "40",
"foreignLine": "false",
"newsAvailable": "true"
},
{
"time": "21:34",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "3102012137",
"kindOfTour": "454REFAUS",
"positionInTour": "0",
"statusNote": "",
"lineId": "RNV004_RNV004A",
"lineLabel": "4",
"differenceTime": "100",
"foreignLine": "false",
"newsAvailable": "true"
},
{
"time": "22:34",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "3102212137",
"kindOfTour": "454REFAUS",
"positionInTour": "0",
"statusNote": "",
"lineId": "RNV004_RNV004A",
"lineLabel": "4",
"differenceTime": "160",
"foreignLine": "false",
"newsAvailable": "true"
},
{
"time": "23:34",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "3102412137",
"kindOfTour": "454REFAUS",
"positionInTour": "0",
"statusNote": "",
"lineId": "RNV004_RNV004A",
"lineLabel": "4",
"differenceTime": "220",
"foreignLine": "false",
"newsAvailable": "true"
},
{
"time": "23.10.2014 04:16",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "225,62780",
"kindOfTour": "452",
"positionInTour": "1",
"statusNote": "",
"lineId": "4",
"lineLabel": "4",
"differenceTime": "502",
"foreignLine": "false",
"newsAvailable": "true"
},
{
"time": "23.10.2014 05:16",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "225,62812",
"kindOfTour": "452",
"positionInTour": "1",
"statusNote": "",
"lineId": "4",
"lineLabel": "4",
"differenceTime": "562",
"foreignLine": "false",
"newsAvailable": "true"
},
{
"time": "23.10.2014 05:34",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "225,62940",
"kindOfTour": "452",
"positionInTour": "1",
"statusNote": "",
"lineId": "4",
"lineLabel": "4",
"differenceTime": "580",
"foreignLine": "false",
"newsAvailable": "true"
},
{
"time": "23.10.2014 06:04",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "225,62782",
"kindOfTour": "452",
"positionInTour": "1",
"statusNote": "",
"lineId": "4",
"lineLabel": "4",
"differenceTime": "610",
"foreignLine": "false",
"newsAvailable": "true"
},
{
"time": "23.10.2014 06:24",
"status": "OK",
"direction": "Berliner Platz",
"platform": "n/a",
"transportation": "STRAB",
"tourId": "225,62814",
"kindOfTour": "452",
"positionInTour": "1",
"statusNote": "",
"lineId": "4",
"lineLabel": "4",
"differenceTime": "630",
"foreignLine": "false",
"newsAvailable": "true"
}
],
"pastRequestText": "n/a",
"updateTime": "0",
"updateIterations": "0",
"time": "19:54",
"icon": "icon_tram.png",
"label": "Richtung ",
"color": "002a4e",
"shortLabel": "n/a",
"projectedTime": "n/a",
"otherTimes": [],
"otherProjectedTimes": []
}
The content of the wiki is licensed under a Creative Commons Attribution License: you may use it, but you must give attribution.