Siirry sisältöön

Ero sivun ”Journeys API” versioiden välillä

104 merkkiä lisätty ,  5. heinäkuuta 2014 kello 04.37
Rivi 293: Rivi 293:
* http://example.com/journeys/api/stop-points will return paged list of all STOP POINTS
* http://example.com/journeys/api/stop-points will return paged list of all STOP POINTS
* http://example.com/journeys/api/stop-points?location=61.48016,23.83057 will return STOP POINTS that reside at given coordinates
* http://example.com/journeys/api/stop-points?location=61.48016,23.83057 will return STOP POINTS that reside at given coordinates
* http://example.com/journeys/api/stop-points?within=(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/stop-points?within=(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/stop-points?journeyId=111 will return STOP POINTS that reside at given coordinates and are referred by a JOURNEY with id 111
* http://example.com/journeys/api/stop-points?journeyId=111 will return STOP POINTS that reside at given coordinates and are referred by a JOURNEY with id 111
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:
* http://example.com/journeys/api/stop-points?location=61.48016,23.83057&journeyId=111 will return STOP POINTS that reside at given coordinates AND is referred by a JOURNEY with id 111
* http://example.com/journeys/api/stop-points?location=61.48016,23.83057&journeyId=111 will return STOP POINTS that reside at given coordinates AND is referred by a JOURNEY with id 111
0

muokkausta