Skip to content

Fix pathway traversal time calculation when none is supplied - #5242

Merged
flaktack merged 1 commit into
opentripplanner:dev-2.xfrom
realCity:feature/pathways
Jul 19, 2023
Merged

Fix pathway traversal time calculation when none is supplied#5242
flaktack merged 1 commit into
opentripplanner:dev-2.xfrom
realCity:feature/pathways

Conversation

@flaktack

Copy link
Copy Markdown
Contributor

Summary

If traversal_time was not specified for a pathway, the distance-based traversal time was calculated using time = distance * speed instead of time = distance / speed.

This updates the calculation.

Issue

Unit tests

☑️ - existing tests are updated

Documentation

No changes.

Changelog

☑️

Bumping the serialization version id

@flaktack
flaktack requested a review from a team as a code owner July 17, 2023 15:38
@codecov

codecov Bot commented Jul 17, 2023

Copy link
Copy Markdown

Codecov Report

Patch coverage has no change and project coverage change: +0.10 🎉

Comparison is base (1c487cc) 65.59% compared to head (7013f73) 65.69%.

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #5242      +/-   ##
=============================================
+ Coverage      65.59%   65.69%   +0.10%     
- Complexity     14654    14725      +71     
=============================================
  Files           1765     1769       +4     
  Lines          68455    68568     +113     
  Branches        7280     7288       +8     
=============================================
+ Hits           44901    45044     +143     
+ Misses         21067    21026      -41     
- Partials        2487     2498      +11     
Impacted Files Coverage Δ
...opentripplanner/street/model/edge/PathwayEdge.java 76.36% <ø> (+0.43%) ⬆️

... and 226 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@leonardehrenfried leonardehrenfried left a comment

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.

Oh god, how embarrassing!

@leonardehrenfried leonardehrenfried added +Skip Changelog This is not a relevant change for a product owner since last release. !Bug Apply to issues describing a bug and PRs witch fixes it. and removed +Skip Changelog This is not a relevant change for a product owner since last release. labels Jul 17, 2023
@leonardehrenfried leonardehrenfried changed the title Pathway traversal time calculation Fix pathway traversal time calculation when none is supplied Jul 18, 2023
@leonardehrenfried
leonardehrenfried requested a review from t2gran July 18, 2023 08:43
@leonardehrenfried leonardehrenfried added this to the 2.4 (next release) milestone Jul 18, 2023
@flaktack
flaktack merged commit ada44b9 into opentripplanner:dev-2.x Jul 19, 2023
t2gran pushed a commit that referenced this pull request Jul 19, 2023
@flaktack
flaktack deleted the feature/pathways branch November 22, 2024 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

!Bug Apply to issues describing a bug and PRs witch fixes it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants