Skip to content

Instantly share code, notes, and snippets.

@TO-mdv
Created March 19, 2025 15:56
Show Gist options
  • Select an option

  • Save TO-mdv/ee9ccd63d42eb1842540971a566d9575 to your computer and use it in GitHub Desktop.

Select an option

Save TO-mdv/ee9ccd63d42eb1842540971a566d9575 to your computer and use it in GitHub Desktop.
TripRefineResponse valides Beispiel
<?xml version="1.0" encoding="utf-8"?>
<OJP xmlns:siri="http://www.siri.org.uk/siri" version="2.0" xmlns="http://www.vdv.de/ojp">
<OJPResponse>
<siri:ServiceDelivery>
<siri:ResponseTimestamp>2025-03-19T16:52:20.2568519+01:00</siri:ResponseTimestamp>
<siri:ProducerRef>MENTZ</siri:ProducerRef>
<OJPTripRefineDelivery>
<siri:ResponseTimestamp>2025-03-19T16:52:20.2568547+01:00</siri:ResponseTimestamp>
<siri:RequestMessageRef>97bbffd6-37a0-465c-989b-581dc459549a</siri:RequestMessageRef>
<siri:DefaultLanguage>de</siri:DefaultLanguage>
<CalcTime>68</CalcTime>
<TripResponseContext>
<Places>
<Place>
<StopPlace>
<StopPlaceRef>ch:1:sloid:92050:0:2891</StopPlaceRef>
<StopPlaceName>
<Text xml:lang="de">Lausanne, gare</Text>
</StopPlaceName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPlace>
<Name>
<Text xml:lang="de">Lausanne, gare</Text>
</Name>
<GeoPosition />
</Place>
<Place>
<StopPoint>
<siri:StopPointRef>ch:1:sloid:92050:0:2891</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, gare</Text>
</StopPointName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<ParentRef>ch:1:sloid:92050:0:2891</ParentRef>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPoint>
<GeoPosition />
</Place>
<Place>
<StopPlace>
<StopPlaceRef>ch:1:sloid:92134:0:1218</StopPlaceRef>
<StopPlaceName>
<Text xml:lang="de">Lausanne, Villard</Text>
</StopPlaceName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPlace>
<Name>
<Text xml:lang="de">Lausanne, Villard</Text>
</Name>
<GeoPosition />
</Place>
<Place>
<StopPoint>
<siri:StopPointRef>ch:1:sloid:92134:0:1218</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Villard</Text>
</StopPointName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<ParentRef>ch:1:sloid:92134:0:1218</ParentRef>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPoint>
<GeoPosition />
</Place>
<Place>
<StopPlace>
<StopPlaceRef>ch:1:sloid:92004:0:1224</StopPlaceRef>
<StopPlaceName>
<Text xml:lang="de">Lausanne, Cécil</Text>
</StopPlaceName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPlace>
<Name>
<Text xml:lang="de">Lausanne, Cécil</Text>
</Name>
<GeoPosition />
</Place>
<Place>
<StopPoint>
<siri:StopPointRef>ch:1:sloid:92004:0:1224</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Cécil</Text>
</StopPointName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<ParentRef>ch:1:sloid:92004:0:1224</ParentRef>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPoint>
<GeoPosition />
</Place>
<Place>
<StopPlace>
<StopPlaceRef>ch:1:sloid:92010:0:1209</StopPlaceRef>
<StopPlaceName>
<Text xml:lang="de">Lausanne, Chauderon</Text>
</StopPlaceName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPlace>
<Name>
<Text xml:lang="de">Lausanne, Chauderon</Text>
</Name>
<GeoPosition />
</Place>
<Place>
<StopPoint>
<siri:StopPointRef>ch:1:sloid:92010:0:1209</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Chauderon</Text>
</StopPointName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<ParentRef>ch:1:sloid:92010:0:1209</ParentRef>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPoint>
<GeoPosition />
</Place>
<Place>
<StopPlace>
<StopPlaceRef>ch:1:sloid:92120:0:1175</StopPlaceRef>
<StopPlaceName>
<Text xml:lang="de">Lausanne, St-Roch</Text>
</StopPlaceName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPlace>
<Name>
<Text xml:lang="de">Lausanne, St-Roch</Text>
</Name>
<GeoPosition />
</Place>
<Place>
<StopPoint>
<siri:StopPointRef>ch:1:sloid:92120:0:1175</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, St-Roch</Text>
</StopPointName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<ParentRef>ch:1:sloid:92120:0:1175</ParentRef>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPoint>
<GeoPosition />
</Place>
<Place>
<StopPlace>
<StopPlaceRef>ch:1:sloid:92060:0:1166</StopPlaceRef>
<StopPlaceName>
<Text xml:lang="de">Lausanne, Beaulieu-Jomini</Text>
</StopPlaceName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPlace>
<Name>
<Text xml:lang="de">Lausanne, Beaulieu-Jomini</Text>
</Name>
<GeoPosition />
</Place>
<Place>
<StopPoint>
<siri:StopPointRef>ch:1:sloid:92060:0:1166</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Beaulieu-Jomini</Text>
</StopPointName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<ParentRef>ch:1:sloid:92060:0:1166</ParentRef>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPoint>
<GeoPosition />
</Place>
<Place>
<StopPlace>
<StopPlaceRef>ch:1:sloid:92076:0:1152</StopPlaceRef>
<StopPlaceName>
<Text xml:lang="de">Lausanne, Mont-Blanc</Text>
</StopPlaceName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPlace>
<Name>
<Text xml:lang="de">Lausanne, Mont-Blanc</Text>
</Name>
<GeoPosition />
</Place>
<Place>
<StopPoint>
<siri:StopPointRef>ch:1:sloid:92076:0:1152</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Mont-Blanc</Text>
</StopPointName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<ParentRef>ch:1:sloid:92076:0:1152</ParentRef>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPoint>
<GeoPosition />
</Place>
<Place>
<StopPlace>
<StopPlaceRef>ch:1:sloid:92003:0:1123</StopPlaceRef>
<StopPlaceName>
<Text xml:lang="de">Lausanne, casernes</Text>
</StopPlaceName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPlace>
<Name>
<Text xml:lang="de">Lausanne, casernes</Text>
</Name>
<GeoPosition />
</Place>
<Place>
<StopPoint>
<siri:StopPointRef>ch:1:sloid:92003:0:1123</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, casernes</Text>
</StopPointName>
<PrivateCode>
<System>EFA</System>
<Value>0</Value>
</PrivateCode>
<ParentRef>ch:1:sloid:92003:0:1123</ParentRef>
<TopographicPlaceRef>-1:-1</TopographicPlaceRef>
</StopPoint>
<GeoPosition />
</Place>
</Places>
<Situations />
</TripResponseContext>
<TripResult>
<Id>ID-AA3AD5A6-FF85-4633-9BDF-9288CCDA6E3E</Id>
<Trip>
<Id>ID-AA3AD5A6-FF85-4633-9BDF-9288CCDA6E3E</Id>
<Duration>PT9M</Duration>
<StartTime>2025-03-13T19:37:00Z</StartTime>
<EndTime>2025-03-13T19:46:00Z</EndTime>
<Transfers>0</Transfers>
<Leg>
<Id>1</Id>
<Duration>PT9M</Duration>
<TimedLeg>
<LegBoard>
<siri:StopPointRef>ch:1:sloid:92050:0:2891</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, gare</Text>
</StopPointName>
<ServiceDeparture>
<TimetabledTime>2025-03-13T19:37:00Z</TimetabledTime>
</ServiceDeparture>
<Order>1</Order>
</LegBoard>
<LegIntermediate>
<siri:StopPointRef>ch:1:sloid:92134:0:1218</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Villard</Text>
</StopPointName>
<ServiceArrival>
<TimetabledTime>2025-03-13T19:38:00Z</TimetabledTime>
</ServiceArrival>
<ServiceDeparture>
<TimetabledTime>2025-03-13T19:38:00Z</TimetabledTime>
</ServiceDeparture>
<Order>2</Order>
</LegIntermediate>
<LegIntermediate>
<siri:StopPointRef>ch:1:sloid:92004:0:1224</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Cécil</Text>
</StopPointName>
<ServiceArrival>
<TimetabledTime>2025-03-13T19:39:00Z</TimetabledTime>
</ServiceArrival>
<ServiceDeparture>
<TimetabledTime>2025-03-13T19:39:00Z</TimetabledTime>
</ServiceDeparture>
<Order>3</Order>
</LegIntermediate>
<LegIntermediate>
<siri:StopPointRef>ch:1:sloid:92010:0:1209</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Chauderon</Text>
</StopPointName>
<ServiceArrival>
<TimetabledTime>2025-03-13T19:41:00Z</TimetabledTime>
</ServiceArrival>
<ServiceDeparture>
<TimetabledTime>2025-03-13T19:41:00Z</TimetabledTime>
</ServiceDeparture>
<Order>4</Order>
</LegIntermediate>
<LegIntermediate>
<siri:StopPointRef>ch:1:sloid:92120:0:1175</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, St-Roch</Text>
</StopPointName>
<ServiceArrival>
<TimetabledTime>2025-03-13T19:42:00Z</TimetabledTime>
</ServiceArrival>
<ServiceDeparture>
<TimetabledTime>2025-03-13T19:42:00Z</TimetabledTime>
</ServiceDeparture>
<Order>5</Order>
</LegIntermediate>
<LegIntermediate>
<siri:StopPointRef>ch:1:sloid:92060:0:1166</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Beaulieu-Jomini</Text>
</StopPointName>
<ServiceArrival>
<TimetabledTime>2025-03-13T19:44:00Z</TimetabledTime>
</ServiceArrival>
<ServiceDeparture>
<TimetabledTime>2025-03-13T19:44:00Z</TimetabledTime>
</ServiceDeparture>
<Order>6</Order>
</LegIntermediate>
<LegIntermediate>
<siri:StopPointRef>ch:1:sloid:92076:0:1152</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, Mont-Blanc</Text>
</StopPointName>
<ServiceArrival>
<TimetabledTime>2025-03-13T19:45:00Z</TimetabledTime>
</ServiceArrival>
<ServiceDeparture>
<TimetabledTime>2025-03-13T19:45:00Z</TimetabledTime>
</ServiceDeparture>
<Order>7</Order>
</LegIntermediate>
<LegAlight>
<siri:StopPointRef>ch:1:sloid:92003:0:1123</siri:StopPointRef>
<StopPointName>
<Text xml:lang="de">Lausanne, casernes</Text>
</StopPointName>
<ServiceArrival>
<TimetabledTime>2025-03-13T19:46:00Z</TimetabledTime>
</ServiceArrival>
<Order>8</Order>
</LegAlight>
<Service>
<OperatingDayRef>2025-03-13</OperatingDayRef>
<JourneyRef>ojp-92-3-S-j25-1-4-TA</JourneyRef>
<PublicCode>Bus</PublicCode>
<siri:LineRef>ojp:92003:S</siri:LineRef>
<siri:DirectionRef>H</siri:DirectionRef>
<Mode>
<PtMode>bus</PtMode>
<siri:BusSubmode>localBus</siri:BusSubmode>
<Name>
<Text xml:lang="de">Bus</Text>
</Name>
<ShortName>
<Text xml:lang="de">B</Text>
</ShortName>
</Mode>
<ProductCategory>
<Name>
<Text xml:lang="de">Bus</Text>
</Name>
<ShortName>
<Text xml:lang="de">B</Text>
</ShortName>
<ProductCategoryRef>29</ProductCategoryRef>
</ProductCategory>
<PublishedServiceName>
<Text xml:lang="de">3</Text>
</PublishedServiceName>
<TrainNumber>3107</TrainNumber>
<Attribute>
<UserText>
<Text xml:lang="de">Niederflureinstieg</Text>
</UserText>
<Code>A__NF</Code>
</Attribute>
<OriginText>
<Text xml:lang="de">n/a</Text>
</OriginText>
<siri:OperatorRef>151</siri:OperatorRef>
<DestinationStopPointRef></DestinationStopPointRef>
</Service>
</TimedLeg>
</Leg>
</Trip>
</TripResult>
</OJPTripRefineDelivery>
</siri:ServiceDelivery>
</OJPResponse>
</OJP>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment