Skip to content

Import experimental GTFS notices, add API#7726

Open
leonardehrenfried wants to merge 8 commits into
opentripplanner:dev-2.xfrom
ibi-group:notices
Open

Import experimental GTFS notices, add API#7726
leonardehrenfried wants to merge 8 commits into
opentripplanner:dev-2.xfrom
ibi-group:notices

Conversation

@leonardehrenfried

@leonardehrenfried leonardehrenfried commented Jun 17, 2026

Copy link
Copy Markdown
Member

Summary

This parses the GTFS spec proposal for notices into our internal data model. This internal model is used already by NeTEx and the GTFS equivalent is very similar. In fact the GTFS spec proposal is heavily influenced by NeTEx.

It also adds resolvers to the GTFS API. In order to give ourselves the opportunity to change the API I marked them as deprecated and added a warning.

Issue

google/transit#620

Unit tests

Lots added.

Documentation

Javadoc and schema docs.

Changelog

Yes.

Bumping the serialization version id

No serialized object changed, so no bump necessary.

cc @alec-georgoff @sebastianknopf

@leonardehrenfried leonardehrenfried added this to the 2.10 (next release) milestone Jun 17, 2026
@leonardehrenfried leonardehrenfried requested a review from a team as a code owner June 17, 2026 06:33
@leonardehrenfried leonardehrenfried added the !New Feature A functional feature targeting the end user. label Jun 17, 2026
@codecov

codecov Bot commented Jun 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.10%. Comparing base (1fee988) to head (3ba10fd).
⚠️ Report is 47 commits behind head on dev-2.x.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #7726      +/-   ##
=============================================
+ Coverage      74.07%   74.10%   +0.03%     
- Complexity     21884    21955      +71     
=============================================
  Files           2426     2437      +11     
  Lines          85929    86191     +262     
  Branches        8563     8577      +14     
=============================================
+ Hits           63651    63875     +224     
- Misses         19246    19278      +32     
- Partials        3032     3038       +6     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +119 to +120
createTripMapper(createRouteMapper()),
createRouteMapper()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

You are creating the route mapper twice.

Comment thread application/src/test/java/org/opentripplanner/gtfs/mapping/NoticeMapperTest.java Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!New Feature A functional feature targeting the end user.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants