Wiki source code of SIRISituationExchangeDelivery
Last modified by admin admin on 2024/07/23 04:58
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | The SIRI SituationExchangeDelivery element only appears when there is a service alert active for a route or stop being called on. It is used by the responses to both the [[VehicleMonitoring>>Developers.SIRIVehicleMonitoring]] and [[StopMonitoring>>Developers.SIRIStopMonitoring]] calls. | ||
2 | |||
3 | |||
4 | The XML below illustrates the SIRI SituationExchangeDelivery element. | ||
5 | ## | ||
6 | <SituationExchangeDelivery> | ||
7 | \\ | ||
8 | <Situations> | ||
9 | <!---- One each per Service Alert-----> | ||
10 | <PtSituationElement> | ||
11 | <!---- Unique ID-----> | ||
12 | <SituationNumber>MTA NYCT_8d065d76-2813-46ee-b024-20f956232831</SituationNumber> | ||
13 | <!---- Information on temporal applicability of the service alert-----> | ||
14 | <PublicationWindow> | ||
15 | <!---- Start time of Service Alert-----> | ||
16 | <StartTime>2011-12-12T08:45:00-05:00</StartTime> | ||
17 | <!---- End time of Service Alert----> | ||
18 | <EndTime>2011-12-13T08:45:00-05:00</StartTime> | ||
19 | </PublicationWindow> | ||
20 | <!---- Severity of the event----> | ||
21 | <Severity>undefined</Severity> | ||
22 | \\ | ||
23 | <!---- Summary text----> | ||
24 | <Summary xml:lang="EN">The B63 is having a party!</Summary> | ||
25 | <!---- Long description Text----> | ||
26 | <Description xml:lang="EN">The B63 is having a party! (SMS)</Description> | ||
27 | \\ | ||
28 | <Affects> | ||
29 | <!---- Element containing VehicleJourney lines and directions----> | ||
30 | <VehicleJourneys> | ||
31 | <!---- One for each Line/Direction----> | ||
32 | <AffectedVehicleJourney> | ||
33 | <!---- GTFS Route_ID, prefixed by agency_id----> | ||
34 | <LineRef>MTA NYCT_B63</LineRef> | ||
35 | <!---- GTFS Route direction_id ----> | ||
36 | <DirectionRef>1</DirectionRef> | ||
37 | \\ | ||
38 | </AffectedVehicleJourney> | ||
39 | <AffectedVehicleJourney> | ||
40 | <LineRef>MTA NYCT_B63</LineRef> | ||
41 | <!---- GTFS Opposite Route direction_id ----> | ||
42 | <DirectionRef>0</DirectionRef> | ||
43 | </AffectedVehicleJourney> | ||
44 | </VehicleJourneys> | ||
45 | </Affects> | ||
46 | |||
47 | <Consequences> | ||
48 | \\ | ||
49 | <Consequence> | ||
50 | <!---- Service alert consequence: CANCELLED, NO_SERVICE, DISRUPTED, INTERMITTENT_SERVICE, DELAYED, DIVERTED etc----> | ||
51 | <Condition>altered</Condition> | ||
52 | </Consequence> | ||
53 | </Consequences> | ||
54 | </PtSituationElement> | ||
55 | </Situations> | ||
56 | </SituationExchangeDelivery> | ||
57 | </ServiceDelivery> | ||
58 | \\ |