Ero sivun ”Journeys API” versioiden välillä

209 merkkiä lisätty ,  5. heinäkuuta 2014 kello 05.36
Rivi 189: Rivi 189:
* http://example.com/journeys/api/routes?lineId=123 will return ROUTES which run on the LINE with id 123
* http://example.com/journeys/api/routes?lineId=123 will return ROUTES which run on the LINE with id 123
* http://example.com/journeys/api/routes?startsAt=61.48016,23.83057 will return ROUTES that start at given coordinates
* http://example.com/journeys/api/routes?startsAt=61.48016,23.83057 will return ROUTES that start at given coordinates
* http://example.com/journeys/api/routes?startsAt=(61.48016,23.83057),(51.83057,13.83057) will return ROUTES that start within given coordinate box. Format: (upper left corner of the box),(lower right corner of the box)
* http://example.com/journeys/api/routes?startsAt=(61.48016,23.83057),(61.48016,13.83057),(51.83057,13.83057),(51.83057,23.83057)) will return ROUTES that start within given coordinate box. Format: (upper left corner of the box),(upper right corner of the box),(lower right corner of the box),(lower left corner of the box)
* 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),(61.48016,13.83057),(51.83057,13.83057),(51.83057,23.83057)) will return ROUTES that start within given coordinate box. Format: (upper left corner of the box),(upper right corner of the box),(lower right corner of the box),(lower left 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). For example query
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
0

muokkausta