Skip to content

Question: ServiceJourney ID should not be derived from SJYID? #170

Description

@FlourishingData

The current examples seem to derive the ServiceJourney id="SJYID from the Swiss Journey ID (SJYID).

<ServiceJourney id="ch:1:sjyid:722-PAG:1" version="1" responsibilitySetRef="ch:1:ResponsibilitySet:PAG-722-3">
	<validityConditions>
		<AvailabilityConditionRef ref="ch:1:AvailabilityCondition:722" version="1"/>
	</validityConditions>
	<TypeOfProductCategoryRef ref="ch:1:TypeOfProductCategory:B" version="1"/>
	<ServiceAlteration>planned</ServiceAlteration>
	<DepartureTime>08:00:00</DepartureTime>
	<JourneyPatternRef ref="ch:1:ServiceJourneyPattern:722" version="1" nameOfRefClass="ServiceJourneyPattern"/>
	<TimeDemandTypeRef ref="ch:1:TimeDemandType:722" version="1"/>
	<OperatorRef ref="ch:1:Operator:100602" version="1"/>
	<LineRef ref="ch:1:slnid:1027553:3" version="1"/>
	<DirectionType>outbound</DirectionType>
	<trainNumbers>
		<TrainNumberRef ref="ch:1:TrainNumber:722-1" version="1"/>
	</trainNumbers>
</ServiceJourney>

Potential Issue: Two different ServiceJourney objects with non-overlapping operating days may legally use the same SJYID.
Question: ServiceJourney id="xxx" be generated independently from the SJYID, with the Swiss Journey ID only being carried in privateCodes

Example:

                        <ServiceJourney id="ch:1:ServiceJourney:PAG:1026478:11957:1" responsibilitySetRef="ch:1:ResponsibilitySet:PAG:Standard" version="1">
                            <validityConditions>
                                <AvailabilityConditionRef ref="ch:1:AvailabilityCondition:FrSaSaSoHolidayNightsCH" version="1"/>
                            </validityConditions>
                            <privateCodes>
                                <PrivateCode type="SJYID">ch:1:sjyid:generated-01</PrivateCode>
                            </privateCodes>
                            <TypeOfProductCategoryRef ref="ch:1:ValueSet:TypeOffProductCategory:B" version="1"/>
                            <ServiceAlteration>planned</ServiceAlteration>
                            <DepartureTime>04:34:00</DepartureTime>
                            <DepartureDayOffset>1</DepartureDayOffset>
                            <JourneyPatternRef ref="ch:1:ServiceJourney:PAG:1026478:11957" version="1" nameOfRefClass="ServiceJourneyPattern"/>
                            <TimeDemandTypeRef ref="ch:1:TimeDemandType:PAG:1026478:11957:1" version="1"/>
                            <LineRef ref="ch:1:Line:PAG:1026478" version="1"/>
                            <DirectionType>outbound</DirectionType>
                            <trainNumbers>
                                <TrainNumberRef ref="ch:1:TrainNumber:PAG:1026478:1" version="1"/>
                            </trainNumbers>
                        </ServiceJourney>

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status
In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions