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

Provide helpers for full feed deliveries #9

Closed
medwards opened this issue Nov 7, 2017 · 2 comments
Closed

Provide helpers for full feed deliveries #9

medwards opened this issue Nov 7, 2017 · 2 comments

Comments

@medwards
Copy link
Collaborator

medwards commented Nov 7, 2017

Feeds generally come in zip archives so provide a helper that will return all iterators or transit objects for a given archive (or folder).

My current version returns a struct of vectors that contain the successfully deserialized structs, and some indexes to help look up structs by id, but that could be deferred to the user to do.

It would be cool if the structs that result from a full archive referenced each other correctly (so a StopTime contains a reference to a Stop instead of the stop_id). I want to fiddle with enums and see if jointly supporting this is possible but its a stretch idea.

medwards added a commit to medwards/transitfeed that referenced this issue Nov 7, 2017
@medwards
Copy link
Collaborator Author

medwards commented Nov 7, 2017

Oops I didn't re-read #5 before opening this.

It should be straightforward to rejig my TransitFeed to have a baseline version that gives iterators on-demand. I'll probably have some layer on top of that that will hold on to transit objects for you and provide helper functions for searching.

@teburd
Copy link
Member

teburd commented Nov 9, 2017

I think both are useful, lets move this discussion to #5 though, and talk about what kind of API we want!

Duplicates #5

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