Skip to content

Conversation

t2gran
Copy link
Member

@t2gran t2gran commented May 7, 2025

Summary

This PR will set the Trip#carsAllowed flag based on submodes in NeTEx. This will enable routing with CAR + FERRY. The submodes that enable the carsAllowed flag is:

  • NATIONAL_CAR_FERRY (WATER)
  • REGIONAL_CAR_FERRY (WATER)
  • LOCAL_CAR_FERRY (WATER)
  • HIGH_SPEED_VEHICLE_SERVICE (WATER)

There are other modes witch also might take cars on board like the CAR_TRANSPORT_RAIL_SERVICE.

At the moment we assume all stops used by a service with the submodes above is car accessible. This is not true in all cases. To account for this we need to know if a stop is car accessible, but this information does not exist in the Norwegian NeTEx data at the moment.

Issue

🟥 There is no issue for this.

Unit tests

✅ I have added unit-tests for the NeTEx mapping.

Documentation

Only JavaDoc is added.

Changelog

✅ This should be included.

Bumping the serialization version id

🟥 No changes to the serialized model.

@t2gran t2gran added this to the 2.8 (next release) milestone May 7, 2025
@t2gran t2gran added Improvement A functional improvement Entur Test This is currently being tested at Entur labels May 7, 2025
@t2gran t2gran marked this pull request as ready for review May 7, 2025 09:24
@t2gran t2gran requested a review from a team as a code owner May 7, 2025 09:24
Copy link

codecov bot commented May 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.17%. Comparing base (bb6bc65) to head (4e2163e).

Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #6640   +/-   ##
==========================================
  Coverage      71.16%   71.17%           
- Complexity     18453    18463   +10     
==========================================
  Files           2027     2027           
  Lines          76296    76312   +16     
  Branches        7807     7807           
==========================================
+ Hits           54295    54313   +18     
+ Misses         19238    19237    -1     
+ Partials        2763     2762    -1     

☔ View full report in Codecov by Sentry.
📢 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.

@t2gran t2gran changed the title feature: Enable CAR transfers with ferries with NeTEx import Enable CAR transfers with ferries with NeTEx import May 7, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good, just a typo

Copy link
Contributor

@vpaturet vpaturet left a comment

Choose a reason for hiding this comment

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

looks good, just a typo.

@t2gran t2gran merged commit 13f89c6 into opentripplanner:dev-2.x May 15, 2025
7 checks passed
@t2gran t2gran deleted the ferry_suport branch May 15, 2025 14:17
t2gran pushed a commit that referenced this pull request May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Entur Test This is currently being tested at Entur Improvement A functional improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants