Siirry sisältöön

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

376 merkkiä poistettu ,  31. lokakuuta 2022 kello 14.38
p
POISTETTU http://data.itsfactory.fi/siriaccess/gm/siri - ei toimi
p (POISTETTU http://data.itsfactory.fi/siriaccess/gm/siri - ei toimi)
 
(4 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 111: Rivi 106:
<b><font color=red>NEW!</font></b>
<b><font color=red>NEW!</font></b>


* '''Please note!''' This 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.
* '''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.
Rivi 198: 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 ===