Skip to content
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

DatedCall should really not have a DayOffset #568

Closed
skinkie opened this issue Dec 7, 2023 · 8 comments
Closed

DatedCall should really not have a DayOffset #568

skinkie opened this issue Dec 7, 2023 · 8 comments
Assignees
Labels
bug Technical mistake, inconsistency with the documentation, etc.

Comments

@skinkie
Copy link
Contributor

skinkie commented Dec 7, 2023

If you would create a DatedCall, I would expect that the intention is to have a date and a time, which are combined. The current model allows a Departure and Arrival structure to have a time with a DayOffset this will obviously lead to very strange ambiguities.

Can we check if this should be restricted?

@skinkie skinkie added the bug Technical mistake, inconsistency with the documentation, etc. label Dec 7, 2023
@skinkie skinkie closed this as completed Dec 7, 2023
@skinkie skinkie reopened this Dec 7, 2023
@Aurige
Copy link
Contributor

Aurige commented Dec 11, 2023

If I remember well the day offset on Call is necessary due to the fact that some vehicle journeys can last several days (a trans-European bus for example), and you need to know on which day of the journey you are.

@skinkie
Copy link
Contributor Author

skinkie commented Dec 11, 2023

If I remember well the day offset on Call is necessary due to the fact that some vehicle journeys can last several days (a trans-European bus for example), and you need to know on which day of the journey you are.

On a call, sure, but we are talking about a DatedCall which has departure_date and arrival_date. So if this means we need restriction ;-) sure. But I would prefer a better object inherintance.

@nick-knowles
Copy link
Contributor

Documentation could state that explicit date and time takes precedence over Offset, but Offset is still useful to have for passenger information "Next day " or "two days later" so as to make clear. people can get very confused over pms and ams

@skinkie
Copy link
Contributor Author

skinkie commented Dec 13, 2023

Documentation could state that explicit date and time takes precedence over Offset, but Offset is still useful to have for passenger information "Next day " or "two days later" so as to make clear. people can get very confused over pms and ams

The point is that an offset is something else than an explicit date. If we now consider an offset being an attribute instead of a qualifier... it does not make sense if in an other case it is a qualifier.

@Aurige
Copy link
Contributor

Aurige commented Dec 13, 2023

Deprecate DatedCall in NeTEx ? YES ! unless somebody comment here in following days ... PR to be done (@skinkie or @Aurige )

@skinkie
Copy link
Contributor Author

skinkie commented Dec 13, 2023

@Aurige It is worse. A DatedVehicleJourneyGroup instroduces both datedPassingTimes and datedCalls. Are we sure we can remove DatedCalls? I see that the datedPassingTimes are just TargetPassingTimes, so I guess we can just make it calls.

@ue71603
Copy link
Contributor

ue71603 commented Dec 13, 2023

@skinkie shouldn't you reference the PR you did for this? Or is this still open?

@ue71603
Copy link
Contributor

ue71603 commented Dec 14, 2023

addressed in #596

@ue71603 ue71603 closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Technical mistake, inconsistency with the documentation, etc.
Projects
None yet
Development

No branches or pull requests

4 participants