-
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
Simplify region configurations #107
Comments
Hey, cool idea, I like it a lot. Will try to answer some of your questions:
If there were a clear way in OSM to unite networks and to avoid name clashes - so, in an ideal world - no problem. In reality, this doesn't really can be expected to be formally correct. To go for a bbox and free tags to be applied, was the most flexible approach we thought we were able to take there. And generally, to cover more cases we probably want to provide this combination. As for this issue, I would like to go for making the bbox optional. This should be possible, and then also performance issues are problem of the one who uses the config file to create their query.
Also here, we can not expect a completely consistent schema on the OSM side. I think the combination of (optionally) using bbox and combining tags is really the best way to allow this script to be used flexibly. But yes, we should make this optional and stick to simple defaults.
We could use a default name and surely make this optional!
It is a nice logic, already coming from the first city this script was made for. It basically queries OSM for relevant places close to a stop without a name set and then assigns - if found - the name to the stop. The default behaviour: not executing it, until opt-in:
The GTFS specifications should guide us here. And there it seems we have to provide some required data. This probably we can not make optional and needs to be introduced by a human.
In the GTFS specs there are also required values for publisher name and url, etc. If it is required in GTFS I think we should not fill it in with dummy content.
No idea. Very good question.
I think we should provide a default of
This is a tricky question. As a default we support a file living in the osm2gtfs root with the name |
In the wiki, I added a general overview of the GTFS values and where they are coming from, and how they may be overridden. Maybe this list is also useful for the thoughts in this issue to optimize it a bit. |
GTFS agency matches pretty well with what OSM calls operator. |
I also think the default behavior should be to use OSM data. But I prefer the network over the operator :p |
Or even better, the timezone inside the |
Here is an open API to find the right timezone : https://timezones-api.now.sh/timezones-4fbc08f/by_point.json?longitude=-0.1406632&latitude=50.8246776 |
Time zone is relatively easy for local routes, but long distance routes can be in multiple time zones (I noticed my town Guarapari/ES is services by a bus route from Acre close to the Bolivian border to Ilhéus/BA, to my knowledge, it crosses 3 different time zones). Is there any good ways to handle such cases?
…Sent from my iPhone
On 28 Dec 2017, at 10:17, Noémie ***@***.***> wrote:
Here is an open API to find the right timezone : https://timezones-api.now.sh/timezones-4fbc08f/by_point.json?longitude=-0.1406632&latitude=50.8246776
The source data for timezones is derived from OSM.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I looked closely the GTFS specifications on this. The reference Time zone is the Agency location. There could be a difference in the time zone for stops, but stop_times are specified with the Agency time zone. (be carefull, if the feed contains several agencies, the all should be with the same time zone).
|
The configuration of regions are already quite simple, but I think we can even simplify them more. My intention behind that is that we make it really easy for new regions to use osm2gtfs without having to configure a lot of things which could be simply use sane defaults.
The results of these process should lead to a revision of the currently existing wiki article about the configuration saying whether a configuration field is mandatory or not and if not, what kind of default is used.
For example, this is the current configuration of fenix:
Here are some questions:
For example, it would be really cool if we could use configurations like this:
Sure, the ability to configure everything is cool but we should not overwhelm users with it. In my opinion.
The text was updated successfully, but these errors were encountered: