Skip to content

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

Open
@amenk

Description

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" ?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions