-
Notifications
You must be signed in to change notification settings - Fork 31
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
Extend handling of start_date
/end_date
to support schedule as a source
#111
Comments
I can see also (even more) scenarios where the start and end date from the configuration file should be used. I guess both are valid approaches. Can we invent a way of enabling a flexible way to define which is more important over the other? See more on this discussion here. Generally I think, that the configuration file can be controlled by the executor of And why is this marked as a bug? And not an enhancement? It works as it worked before. |
Sounds very reasonable, I agree with you! |
start_date
/end_date
in configuration and schedulestart_date
/end_date
to support schedule as a source
I was thinking about another approach, which could be selecting the minimal intersection between the given start and end dates. @AltNico already said this would be too complicated and confusing in his opinion, but I wanted to mention the idea here, too. But I'm convinced we should at least output some warning message if there are two different start or end dates, instead of just ignoring one. See #95 and #98. |
Not sure if I understand well. But in case I did, just wanted to mention that we are doing it in one case: if no dates or only the start_date is given, the time span is one year per default. |
Okay, I'll try to explain with some examples. I've made two suggestions:
|
As of #99 only the
start_date
/end_date
of the configuration are used and never the ones from the schedule. As the ones from the schedules are likely more up-to-date than in the schedule, these should be used if available. If they are not available, the ones from the configuration should be used like done at the moment and only if neither the configuration nor the schedule contain these dates, osm2gtfs should generate dates for them.The text was updated successfully, but these errors were encountered: