approved, byrokraatit, ylläpitäjät
0
muokkausta
(→Routes) |
|||
Rivi 291: | Rivi 291: | ||
<pre> | <pre> | ||
{ | { | ||
" | "url" : "http://data.itsfactory.fi/journeys/api/1/journeys/2010", | ||
" | "activityUrl" : "http://data.itsfactory.fi/journeys/api/1/vehicle-activity?journeyRef=3_0010_3615_0002", | ||
"routeUrl" : "http://data.itsfactory.fi/journeys/api/1/routes/398", | |||
"lineUrl" : "http://data.itsfactory.fi/journeys/api/1/lines/3", | |||
"journeyPatternUrl" : "http://data.itsfactory.fi/journeys/api/1/journey-patterns/333", | |||
"departureTime" : "00:10:00", | |||
"arrivalTime" : "00:38:00", | |||
"dayTypes" : [ "monday" ], | |||
"dayTypeExceptions" : [ { | |||
"from" : "2015-04-04", | |||
"to" : "2015-04-04", | |||
"runs" : "yes" | |||
} ], | |||
"calls" : [ { | |||
"arrivalTime" : "00:10:00", | |||
"departureTime" : "00:10:00", | |||
"stopPoint" : { | |||
"url" : "http://data.itsfactory.fi/journeys/api/1/stop-points/0002", | |||
"location" : "61.49756,23.76148", | |||
"name" : "Keskustori L", | |||
"shortName" : "0002", | |||
"tariffZone" : "1", | |||
"muncipality" : { | |||
"url" : "http://data.itsfactory.fi/journeys/api/1/muncipalities/837", | |||
"shortName" : "837", | |||
"name" : "Tampere" | |||
} | |||
} | |||
}, { | |||
"arrivalTime" : "00:11:00", | |||
"departureTime" : "00:11:00", | |||
"stopPoint" : { | |||
"url" : "http://data.itsfactory.fi/journeys/api/1/stop-points/0500", | |||
"location" : "61.49794,23.76558", | |||
"name" : "Koskipuisto C", | |||
"shortName" : "0500", | |||
"tariffZone" : "1", | |||
"muncipality" : { | |||
"url" : "http://data.itsfactory.fi/journeys/api/1/muncipalities/837", | |||
"shortName" : "837", | |||
"name" : "Tampere" | |||
} | |||
} | |||
} | } | ||
} | ... | ||
] | |||
} | |||
</pre> | </pre> | ||
JOURNEY element contains property called "call". A call is NeTEx element which binds together journeys arrival and departure times with STOP POINT information. For example the JOURNEY in the response has three calls: first call tells that the JOURNEY start time and that it starts from STOP POINT with id 222. | JOURNEY element contains property called "call". A call is NeTEx element which binds together journeys arrival and departure times with STOP POINT information. For example the JOURNEY in the response has three calls: first call tells that the JOURNEY start time and that it starts from STOP POINT with id 222. | ||
Rivi 362: | Rivi 351: | ||
* http://data.itsfactory.fi/journeys/api/1/journeys?firstStopPointId=111 will return JOURNEYS which first call which contains STOP POINT with id 111 | * http://data.itsfactory.fi/journeys/api/1/journeys?firstStopPointId=111 will return JOURNEYS which first call which contains STOP POINT with id 111 | ||
* http://data.itsfactory.fi/journeys/api/1/journeys?lastStopPointId=111 will return JOURNEYS which last call which contains STOP POINT with id 111 | * http://data.itsfactory.fi/journeys/api/1/journeys?lastStopPointId=111 will return JOURNEYS which last call which contains STOP POINT with id 111 | ||
==== Stop Points ==== | ==== Stop Points ==== |