A service is the element which contains the details about the transport company and the journey.
<Service> <OperatingDayRef>2016-11-10</OperatingDayRef> <JourneyRef>odp:01014::H:j16:121</JourneyRef> <LineRef>odp:01014::H</LineRef> <DirectionRef>outward</DirectionRef> <Mode> <PtMode>urbanRail</PtMode> <RailSubmode>suburbanRailway</RailSubmode> <Name> <Text>S-Bahn</Text> <Language>DE</Language> </Name> </Mode> <PublishedLineName> <Text>14</Text> <Language>DE</Language> </PublishedLineName> <OperatorRef>odp:96</OperatorRef> <OriginStopPointRef>8502113</OriginStopPointRef> <OriginText> <Text>Aarau</Text> <Language>DE</Language> </OriginText> <DestinationStopPointRef>8502169</DestinationStopPointRef> <DestinationText> <Text>Menziken</Text> <Language>DE</Language> </DestinationText> </Service>
As part of the ContinuousServiceStructure, a service has the following structure:
Name | Mandat? | Description | Example |
OperatingDay | Yes | Journey day of operation | 2016-04-02 |
VehicleRef | No | Vehicle ID
Is not used |
– |
JourneyRef | Yes | Journey ID | odp:01012::H:j16:30441 |
LineRef | Yes | Line ID | odp:01012H |
DirectionRef | Yes | Direction ID
|
outwards |
Mode | Yes | The form of transport contains thePTMode | <Mode>
<PtMode>urbanRail</PtMode> <RailSubmode>suburbanRailway</RailSubmode> <Name> <Text>S-Bahn</Text> <Language>DE</Language> </Name> </Mode>
|
PublishedLineName | Yes | Line number or name, as known publicly | <PublishedLineName>
<Text>14</Text> <Language>DE</Language> <PublishedLineName>
|
OperatorRef | No | Operator ID.
Is based on the business organisation number or transport company code and can be identified from the dataset Business organisations. |
odp:96 |
RouteDescription | No | Description of the route | RouteDescription is not used in this implementation. |
Via | No, multiple | Important stops on the route
Is not used |
– |
OriginStopPointRef | No | Journey starting point (Didok code) | 850010 |
OriginText | No | Text description of the starting point. Language is always DE. | <OriginText>
<Text>Basel SBB</Text> <Language>DE</Language> <OriginText>
|
DestinationStopPointRef | No | Similar to starting point for destination. | 850010 |
DestinationText | No | Similar to OriginText | Similar to OriginText |