Siirry sisältöön

Ero sivun ”ITSFactory siriaccess developerguide” versioiden välillä

170 merkkiä poistettu ,  31. lokakuuta 2022 kello 15.38
p
POISTETTU http://data.itsfactory.fi/siriaccess/gm/siri - ei toimi
Ei muokkausyhteenvetoa
p (POISTETTU http://data.itsfactory.fi/siriaccess/gm/siri - ei toimi)
 
(11 välissä olevaa versiota 2 käyttäjän tekeminä ei näytetä)
Rivi 1: Rivi 1:
ITS Factory supports following SIRI modules:
ITS Factory supports following SIRI modules:
* Vehicle Monitoring, VM (Currently available)
* Vehicle Monitoring, VM (Currently available)
* General Messages, GM (Currently available in beta phase)
* General Messages, GM (Currently available)


== SIRI Vehicle Monitoring ==
== SIRI Vehicle Monitoring ==
Rivi 7: Rivi 7:


URLs:
URLs:
* http://data.itsfactory.fi/siriaccess/vm/siri (SIRI XML documents over HTTP POST)
* http://data.itsfactory.fi/siriaccess/vm/json (SIRI JSON documents over HTTP GET)
* http://data.itsfactory.fi/siriaccess/vm/json (SIRI JSON documents over HTTP GET)
=== SIRI XML documents over HTTP POST ===
The URL supports standard SIRI XML document exchange as defined in http://user47094.vs.easily.co.uk/siri/, the SIRI version is 1.3 as defined in http://user47094.vs.easily.co.uk/siri/schema/1.3/siri.xsd


==== Requests ====
==== Requests ====
Rivi 108: Rivi 103:


=== SIRI JSON documents over HTTP GET ===
=== SIRI JSON documents over HTTP GET ===
<b><font color=red>NEW!</font></b>
* '''Please note!''' This SIRI VM JSON interface is superceeded by http://wiki.itsfactory.fi/index.php/Journeys_API#Vehicle_Activity . This interface will remain in use until it is eventually removed in the future. SIRI GM interface continues its operation.
JSON access responds to HTTP GET requests and returns JSON formatted textual data. The data itself is structured and named like standard SIRI XML responses (it is just converted from SIRI XML to JSON notation). This allows the client avoid XML request parsing which is typically cumbersome for example to JavaScript clients.
JSON access responds to HTTP GET requests and returns JSON formatted textual data. The data itself is structured and named like standard SIRI XML responses (it is just converted from SIRI XML to JSON notation). This allows the client avoid XML request parsing which is typically cumbersome for example to JavaScript clients.


==== Requests ====
==== Requests ====  
To access the SIRI vehicle monitoring client must send HTTP GET requests to http://data.itsfactory.fi/siriaccess/vm/json
To access the SIRI vehicle monitoring client must send HTTP GET requests to http://data.itsfactory.fi/siriaccess/vm/json


Rivi 193: Rivi 193:
URLs:  
URLs:  


* http://data.itsfactory.fi/siriaccess/gm/siri (SIRI XML documents over HTTP POST)
* http://data.itsfactory.fi/siriaccess/gm/json (SIRI JSON documents over HTTP GET)
* http://data.itsfactory.fi/siriaccess/gm/json (SIRI JSON documents over HTTP GET)
=== SIRI XML documents over HTTP POST ===
=== SIRI XML documents over HTTP POST ===
Rivi 253: Rivi 252:


==== Responses ====
==== Responses ====
Like in the case of Vehicle Monitoring, the fields and the response structure is similar than the earlier presented XML response. Please check the XML response for few field descriptions.
The fields and the response structure is similar than the earlier presented XML response. Please check the XML response for few field descriptions.