185
muokkausta
(luokat lisätty) |
|||
(4 välissä olevaa versiota 2 käyttäjän tekeminä ei näytetä) | |||
Rivi 13: | Rivi 13: | ||
==API Entities== | ==API Entities== | ||
The API is built on top of NeTEx entity model | The API is built on top of NeTEx entity model, from which the entities in this API are derived. Following picture outlines the entities and their relationships. | ||
[[File:API_Entities_1.1.png|none]] | [[File:API_Entities_1.1.png|none]] | ||
Rivi 127: | Rivi 127: | ||
<pre> | <pre> | ||
api/1/lines | api/1/lines | ||
- description : String | - description : String | ||
Rivi 480: | Rivi 479: | ||
"name" : "Keskustori M", | "name" : "Keskustori M", | ||
"shortName" : "0001", | "shortName" : "0001", | ||
"tariffZone" : " | "tariffZone" : "A", | ||
"municipality" : { | "municipality" : { | ||
"url" : "http://data.itsfactory.fi/journeys/api/1/municipalities/837", | "url" : "http://data.itsfactory.fi/journeys/api/1/municipalities/837", | ||
Rivi 493: | Rivi 492: | ||
* http://data.itsfactory.fi/journeys/api/1/stop-points?location=61.69978,23.89121 will return STOP POINTS that reside at given coordinates | * http://data.itsfactory.fi/journeys/api/1/stop-points?location=61.69978,23.89121 will return STOP POINTS that reside at given coordinates | ||
* http://data.itsfactory.fi/journeys/api/1/stop-points?location=61.49978,23.69121:61.79978,23.99121 will return STOP POINTS that start within given coordinate box. Format: (upper left corner of the box):(lower right corner of the box) | * http://data.itsfactory.fi/journeys/api/1/stop-points?location=61.49978,23.69121:61.79978,23.99121 will return STOP POINTS that start within given coordinate box. Format: (upper left corner of the box):(lower right corner of the box) | ||
* http://data.itsfactory.fi/journeys/api/1/stop-points?tariffZone= | * http://data.itsfactory.fi/journeys/api/1/stop-points?tariffZone=A will return list of all STOP POINTS within Tariff Zone A | ||
===== About Tariff Zones ===== | ===== About Tariff Zones ===== | ||
Journeys API returns tariff zones as tariff zone ids defined by City of Tampere. Valid tariff zone ids are: | Journeys API returns tariff zones as tariff zone ids defined by City of Tampere. Valid tariff zone ids are: A,B,C,D,E,F and G | ||
Please see | Please see https://www.nysse.fi/en/tickets-and-fares/zones.html for more details on tariff zones. | ||
==== Municipalities ==== | ==== Municipalities ==== | ||
Rivi 683: | Rivi 678: | ||
You can also visit Journeys API Facebook page at https://www.facebook.com/journeysapi, where we update news and other noteworthy issues and you can ask questions as well. | You can also visit Journeys API Facebook page at https://www.facebook.com/journeysapi, where we update news and other noteworthy issues and you can ask questions as well. | ||
[[Luokka:Api]] | |||
[[Luokka:Public Transport APIs]] | |||
[[Luokka:Tampere APIs]] |