noi-techpark / it.bz.opendatahub.api.mobility-ninja

The new home of the Open Data Hub Mobility API v2
Other
2 stars 0 forks source link

As Italian Ministry of Transportation, I would like South Tyrol to have a SIRI-SX end-point #40

Closed rcavaliere closed 1 month ago

rcavaliere commented 1 month ago

By the end of September, we need to have such kind of standard interface implemented. SIRI-SX is the reference service for sharing disruption information in public transport, e.g. journey cancellation. This interface will be implemented by STA with their suppliers, but are in delay. As MVP of the end-point the proposal is to have something static, related to an end-point controlled by us, which should be https://transmodel.api.opendatahub.com/siri-lite/situation-exchange. We could then redirect this end-point to the right one, once STA has completed his work.

For the first MVP, the request is to:

STA will provide the end-point to our temporary URL

<?xml version="2.0" encoding="UTF-8"?>
<Siri xmlns="http://www.siri.org.uk/siri" xmlns:ns2="http://www.ifopt.org.uk/acsb" xmlns:ns3="http://www.ifopt.org.uk/ifopt" xmlns:ns4="http://datex2.eu/schema/2_0RC1/2_0">
    <ServiceDelivery>
        <ResponseTimestamp>2024-09-06T16:48:38.640+02:00</ResponseTimestamp>
        <ProducerRef>RAP-Alto-Adige</ProducerRef>
        <ResponseMessageIdentifier>1</ResponseMessageIdentifier>
    <SituationExchangeDelivery>
            <ResponseTimestamp>2024-09-06T16:48:38.729+02:00</ResponseTimestamp>
      <SubscriberRef>NAP</SubscriberRef>
            <SubscriptionRef>1</SubscriptionRef>
            <Situations>
                <PtSituationElement>
                </PtSituationElement>
            </Situations>
        </SituationExchangeDelivery>
    </ServiceDelivery>
</Siri>
clezag commented 1 month ago

@rcavaliere I've hosted the JSON file on a S3 bucket, which they can proxy to: http://sta.siri.mock.s3-website-us-east-1.amazonaws.com/siri-lite-sx.json

Let me know if this can work.

rcavaliere commented 1 month ago

@clezag perfect! I will ask STA to prepare the end-point and to redirect it to this URL