approved, byrokraatit, ylläpitäjät
0
muokkausta
Rivi 303: | Rivi 303: | ||
"latitude" : "59.48016", | "latitude" : "59.48016", | ||
"longitude" : "23.83057" | "longitude" : "23.83057" | ||
} | |||
] | |||
} | |||
] | |||
} | |||
} | |||
</pre> | |||
==== Journeys ==== | |||
(List of route JOURNEYS not available, clients are expected to navigate to a certain JOURNEY via LINES or ROUTES.) | |||
A client can access specific JOURNEY'S details by issuing request at http://example.com/journeys/api/journeys/111 | |||
This request would produce following response: | |||
<pre> | |||
{ | |||
"headers" : { | |||
"dataValidityPeriod" : { | |||
"validFrom" : "2013-01-01", | |||
"validTo" : "2013-05-31" | |||
}, | |||
"startIndex" : 0, | |||
"pageSize" : 1, | |||
"moreData" : false | |||
}, | |||
"data" : { | |||
"journeys" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/journeys/111", | |||
"departureTime" : "08:00:00+0300", | |||
"dayTypes" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/day-types/weekdays" | |||
} | |||
], | |||
"dayTypeExceptions" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/day-type-exceptions/111", | |||
"date" : "2014-05-05", | |||
"runs" : "no" | |||
} | |||
], | |||
"calls" : [ | |||
{ | |||
"href" : "http://example.com/journeys/api/calls/1123", | |||
"arrival" : "08:00:00+0300", | |||
"departure" : "08:00:00+0300", | |||
"stopPoint" : { | |||
"href" : "http://example.com/journeys/api/stop-points/222" | |||
} | |||
}, | |||
{ | |||
"href" : "http://example.com/journeys/api/calls/1124", | |||
"arrival" : "08:10:00+0300", | |||
"departure" : "08:10:00+0300", | |||
"stopPoint" : { | |||
"href" : "http://example.com/journeys/api/stop-points/223" | |||
} | |||
}, | |||
{ | |||
"href" : "http://example.com/journeys/api/calls/1125", | |||
"arrival" : "08:20:00+0300", | |||
"departure" : "08:20:00+0300", | |||
"stopPoint" : { | |||
"href" : "http://example.com/journeys/api/stop-points/224" | |||
} | |||
} | } | ||
] | ] |