|
|
Rivi 138: |
Rivi 138: |
| * http://data.itsfactory.fi/journeys/api/1/lines?name=13 will return LINES which name contains text "13" (case-insensitive) | | * http://data.itsfactory.fi/journeys/api/1/lines?name=13 will return LINES which name contains text "13" (case-insensitive) |
| * http://data.itsfactory.fi/journeys/api/1/lines?description=Hermia will return LINES which description contains text "Hermia" (case-insensitive) | | * http://data.itsfactory.fi/journeys/api/1/lines?description=Hermia will return LINES which description contains text "Hermia" (case-insensitive) |
| * http://data.itsfactory.fi/journeys/api/1/lines?routeId=123 will return LINES which run on the ROUTE with id 123
| |
| * http://data.itsfactory.fi/journeys/api/1/lines?stopPointId=222 will return LINES which run via STOP POINT with id 222
| |
| * http://data.itsfactory.fi/journeys/api/1/lines?firstStopPointId=1456 will return LINES which start from STOP POINT with id 111
| |
| * http://data.itsfactory.fi/journeys/api/1/lines?lastStopPointId=1456 will return LINES which stop at STOP POINT with id 111
| |
| * http://data.itsfactory.fi/journeys/api/1/lines?stopPointShortName=5370 will return LINES which run via STOP POINT with short name 5370
| |
| * http://data.itsfactory.fi/journeys/api/1/lines?firstStopPointShortName=5393 will return LINES which start from STOP POINT with short name 5393
| |
| * http://data.itsfactory.fi/journeys/api/1/lines?lastStopPointShortName=5394 will return LINES which stop at STOP POINT with short name 5394
| |
|
| |
| 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://data.itsfactory.fi/journeys/api/1/lines?routeId=123&lineName=13 will return LINES which run on the ROUTE with id 123 AND belongs to a LINE with name containing text "13" (case-insensitive)
| |
|
| |
|
| ==== Routes ==== | | ==== Routes ==== |