-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[doc] Add specifications for calendriers.txt #529
[doc] Add specifications for calendriers.txt #529
Conversation
39094f0
to
abe339e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check about UICOperatingPeriod ?
138790f
to
8638ae3
Compare
So, both the following (and equivalent) XML passes the <members>
<DayType id="FR:DayType:service_one:LOC" version="any" />
<ServiceCalendar id="FR:ServiceCalendar:service_one:LOC" version="any">
<dayTypes>
<DayTypeRef ref="FR:DayType:service_one:LOC" />
</dayTypes>
<operatingPeriods>
<UicOperatingPeriod id="FR:UicOperatingPeriod:service_one:LOC" version="any">
<FromDate>2019-07-10T00:00:00Z</FromDate>
<ValidDayBits>0100101000100101</ValidDayBits>
</UicOperatingPeriod>
</operatingPeriods>
</ServiceCalendar>
</members>
<members>
<DayType id="FR:DayType:service_one:LOC" version="any" />
<ServiceCalendar id="FR:ServiceCalendar:service_one:LOC" version="any">
<dayTypes>
<DayTypeRef ref="FR:DayType:service_one:LOC" />
</dayTypes>
<operatingPeriods>
<OperatingPeriodRef ref="FR:UicOperatingPeriod:service_one:LOC" />
</operatingPeriods>
</ServiceCalendar>
<UicOperatingPeriod id="FR:UicOperatingPeriod:service_one:LOC" version="any">
<FromDate>2019-07-10T00:00:00Z</FromDate>
<ValidDayBits>0100101000100101</ValidDayBits>
</UicOperatingPeriod>
</members> Note how in the second I use <members>
<DayType id="FR:DayType:service_one:LOC" version="any" />
<DayTypeAssignment id="FR:DayTypeAssignment:service_one:LOC" version="any" order="0">
<OperatingPeriodRef ref="FR:UicOperatingPeriod:service_one:LOC" />
<DayTypeRef ref="FR:DayType:service_one:LOC" />
</DayTypeAssignment>
<UicOperatingPeriod id="FR:UicOperatingPeriod:service_one:LOC" version="any">
<FromDate>2019-07-10T00:00:00Z</FromDate>
<ValidDayBits>0100101000100101</ValidDayBits>
</UicOperatingPeriod>
</members> If I understand correctly, the 3 above versions are strictly identical in term of modeling (thanks NeTEx for all these possibilities, I'm sure I can come up with half a dozen more other options!). Which one should we adopt? Maybe the latest one is the simplest and also the closest from IDF profile? |
2039c44
to
d5c737a
Compare
I changed the specification to integrate
|
d5c737a
to
e03634b
Compare
315dd5d
to
f2ce1b4
Compare
f2ce1b4
to
a61107a
Compare
I just rebased this PR before merging it. It was approved by @prhod already. |
I copy/pasting an example here of a
calendar.txt
and acalendar_dates.txt
, as well as the expected results incalendriers.xml
.calendar.txt
calendar_dates.txt
calendriers.xml