Skip to content

Expose FeedInfo objects via IndexAPI - #2456

Merged
abyrd merged 1 commit into
opentripplanner:masterfrom
camsys:add-feed-info
Aug 17, 2017
Merged

abyrd merged 1 commit into
opentripplanner:masterfrom
camsys:add-feed-info

Conversation

@sdjacobs

Copy link
Copy Markdown
Contributor

We have found it useful to be able to access GTFS FeedInfo information from OTP's API, in order to ensure that an OTP instance is serving fresh data. I think this could be useful for other OTP users as well.

This PR will serialize FeedInfo objects from GTFS feeds into the OTP graph, and expose them via a new call /otp/routers/default/index/feeds/{feedId} in IndexAPI. If the given feed ID does not exist, or that feed does not supply feed_info.txt, the call will return a 404 (though of course I'm open to feedback on this behavior).

@barbeau

barbeau commented Jun 14, 2017 via email

Copy link
Copy Markdown
Contributor

@sdjacobs sdjacobs mentioned this pull request Aug 17, 2017
@abyrd
abyrd merged commit 2ff83a3 into opentripplanner:master Aug 17, 2017
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

Successfully merging this pull request may close these issues.

3 participants