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

Cache based on config file, not selector to support different agencies per city #155

Open
amenk opened this issue Dec 15, 2019 · 4 comments

Comments

@amenk
Copy link

amenk commented Dec 15, 2019

In Addis Ababa we have different agencies (short codes AB, SH + lightrail + minibusses)

We believe should run osm2gtfs with 4 different config files.

I created two of them here:

https://github.com/AddisMap/osm2gtfs/tree/develop/osm2gtfs/creators/et_addisababa

config_AB.json
config_SH.json

The problem here is, that if I run osm2gtfs with those configs, the output is exactly the same unless I use --refresh-all.

I assume this happens because the same cache is used.

To avoid this I tried to create different folders per agency (which makes sense as at least for minibus the generation will be different)

https://github.com/AddisMap/osm2gtfs/tree/feature/seperated_configs/osm2gtfs/creators

But now I get

"ERROR:root:No schedule source found."

So it does not seem to use the proper classes.

Questions I have:

  • Is that the right approach?
  • How to fix the problem with "No schedule source found" ?
@xamanu
Copy link
Contributor

xamanu commented Dec 15, 2019

Hi @amenk, I would try to create on config file for all four agencies? Or do you actually need four separate GTFS files?

Regarding the schedule: what time information do you have available?

@amenk
Copy link
Author

amenk commented Dec 15, 2019

Is it possible to create one GTFS file with different agencies? That could work ..

We don't have any exact schedule available. Just operation times.

And for minibusses it's more like GTFS flex

@xamanu
Copy link
Contributor

xamanu commented Dec 15, 2019

Is it possible to create one GTFS file with different agencies?

Sure, you are relatively free to select the tags you want for querying OSM.

We don't have any exact schedule available. Just operation times. And for minibusses it's more like GTFS flex.

Currently we dont have any support for GTFS flex. And most cities here, built up an imaginary schedule from frequencies. In case of Accra the frequency info was added to OSM and is being picket up in the custom Accra creator. The Nicaragua providers have the information in some spreadsheet and mock-up the schedule file osm2gtfs has asked you for.

@amenk
Copy link
Author

amenk commented Oct 22, 2022

But the agency name is defined in the config - is it possible to have different agencies in one config file? Another option might be to pull the agency name from OSM tags, or threat the whole network as one agency ( and just add the name of the operator in the trips?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants