Skip to content

Conversation

@jcpitre
Copy link
Collaborator

@jcpitre jcpitre commented Feb 14, 2025

Summary:
Closes #906 and #899 and #925
Combined GTFS and GTFS_RT data extraction for the common members, giving status and redirect for RT feeds by default.
For the bounding box with the RT feeds used the bounding box of the associated GTFS feed.

Expected behavior:

In the exported csv file, the realtime feeds should now have status, redirect and bounding box data.
The bounding box data should be the one from the associated GTFS feed.

Tested with the dev environment and spot checking some GTFS rt feeds.

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with ./scripts/api-tests.sh to make sure you didn't break anything
  • Add or update any needed documentation to the repo
  • Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

@jcpitre jcpitre linked an issue Feb 14, 2025 that may be closed by this pull request
@jcpitre jcpitre changed the title Added missing status and bounding box for RT feeds fix: Added missing status and bounding box for RT feeds Feb 14, 2025
Copy link
Contributor

@qcdyx qcdyx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

subquery = gtfs_rt_feed_filter.filter(
select(Gtfsrealtimefeed.id)
.join(Location, Gtfsrealtimefeed.locations)
.join(Location, Gtfsrealtimefeed.locations, isouter=True)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this isouter so GTFS RT feeds that don't have locations are still returned.
See #925

@davidgamez davidgamez merged commit 8bd3bd6 into main Feb 28, 2025
3 checks passed
@davidgamez davidgamez deleted the 906-missing-column-values-for-gtfs-realtime-feeds-in-sources_v2csv branch February 28, 2025 16:34
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.

Missing column values for gtfs-realtime feeds in sources_v2.csv Export CSV generates bounding box extracted date in rows without bounding boxes

4 participants