approved, byrokraatit, ylläpitäjät
0
muokkausta
(→Lines) |
|||
Rivi 108: | Rivi 108: | ||
=== Entity Queries === | === Entity Queries === | ||
==== About Query Parameters ==== | |||
Journeys API allows the client user URL parameters in queries. You can find out valid query parameters for each entity on this page. A client can issue none or all query parameters in a query. For example a client could query: | |||
<pre> | |||
http://data.itsfactory.fi/journeys/api/1/lines | |||
</pre> | |||
or | |||
<pre> | |||
http://data.itsfactory.fi/journeys/api/1/lines?name=13&description=hermia | |||
</pre> | |||
by using multiple query parameters. | |||
==== About IDs ==== | |||
Each entity in Journeys API has an id (the url field ends to it), for example in line id "2" in url | |||
<pre> | |||
http://data.itsfactory.fi/journeys/api/1/lines/2 | |||
</pre> | |||
LINE ids relate to "known" line names by the scheduling, for example line Y4 has id Y4. This id is unlikely to change. | |||
STOP POINT ids relate to "known" stop point numbers by the scheduling, for example stop point Keskustori M has number 0001 which is also the id of the stop point. This id is unlikely to change. | |||
==== Lines ==== | ==== Lines ==== | ||
A client can access specific LINE'S details by issuing request at http://data.itsfactory.fi/journeys/api/1/lines/2 | A client can access specific LINE'S details by issuing request at http://data.itsfactory.fi/journeys/api/1/lines/2 |