Ero sivun ”Journeys API” versioiden välillä

438 merkkiä lisätty ,  5. heinäkuuta 2014 kello 04.22
Rivi 182: Rivi 182:
}
}
</pre>
</pre>
The ROUTE entity refers to LINE via the "line" property. The ROUTE entity also owns multiple POINT ON ROUTEs, which each have location property. The location property tells the latitude and longitude of the POINT ON ROUTE. Location has format: latitude,longitude.
A client can search ROUTES by issuing following requests:<br>
A client can search ROUTES by issuing following requests:<br>
* http://example.com/journeys/api/routes will return paged list of all ROUTES
* http://example.com/journeys/api/routes will return paged list of all ROUTES
Rivi 189: Rivi 191:
* http://example.com/journeys/api/routes?stopsAt=61.48016,23.83057 will return ROUTES that stop at given coordinates
* http://example.com/journeys/api/routes?stopsAt=61.48016,23.83057 will return ROUTES that stop at given coordinates
* http://example.com/journeys/api/routes?stopsAt=(61.48016,23.83057),(51.83057,13.83057) will return ROUTES that stop within given coordinate box. Format: (upper left corner of the box),(lower right corner of the box)
* http://example.com/journeys/api/routes?stopsAt=(61.48016,23.83057),(51.83057,13.83057) will return ROUTES that stop within given coordinate box. Format: (upper left corner of the box),(lower right corner of the box)
These queries return response like above, with entities matching the criteria. All query parameters are exclusive (if you specify multiple conditions, the conditions are ANDed together).
 
These queries return response like above, with entities matching the criteria. All query parameters are exclusive (if you specify multiple conditions, the conditions are ANDed together). For example query
* http://example.com/journeys/api/routes?startsAt=61.48016,23.83057&lineId=123 will return ROUTES that start at given coordinates AND belong to line 123


==== Journeys ====
==== Journeys ====
0

muokkausta