Skip to content

Fix checking allowed boarding/alighting for unscheduled flex trips#3782

Merged
hannesj merged 4 commits into
opentripplanner:dev-2.xfrom
entur:otp2_fix_unscheduled_flex
Dec 14, 2021
Merged

Fix checking allowed boarding/alighting for unscheduled flex trips#3782
hannesj merged 4 commits into
opentripplanner:dev-2.xfrom
entur:otp2_fix_unscheduled_flex

Conversation

@hannesj

@hannesj hannesj commented Dec 13, 2021

Copy link
Copy Markdown
Contributor

Summary

Since #3720 the boarding/alighting constraints for unscheduled trips are checked from the wrong stop index. This fixes that

Unit tests

None

Code style

Code style followed

Documentation

No updates required

Changelog

The changelog file
is generated from the pull-request title, make sure the title describe the feature or issue fixed.
To exclude the PR from the changelog add [changelog skip] in the title.

These are already checked in getFromIndex and getToIndex
The reading and mapping of the Norwegian Netex files went from 2min 25sec to 1min 15sec
Comment thread src/ext/java/org/opentripplanner/ext/flex/trip/UnscheduledTrip.java Outdated
@leonardehrenfried

Copy link
Copy Markdown
Member

First of all, sorry for breaking this. This PR has made me understand more how these access/egrees paths should be calculated.

I just checked the Aspen feed and it still works.

Screenshot from 2021-12-13 17-22-30

Do you have a feed with an unscheduled trip that contains more than one stop time because so far I have only seen ones with a single one. Then I could add a test that those work.

….java

Co-authored-by: Leonard Ehrenfried <mail@leonard.io>
@hannesj

hannesj commented Dec 13, 2021

Copy link
Copy Markdown
Contributor Author

First of all, sorry for breaking this. This PR has made me understand more how these access/egrees paths should be calculated.

No problem. This should have been caught by the review last time.

@t2gran t2gran added this to the 2.1 milestone Dec 14, 2021
@t2gran t2gran added the !Bug Apply to issues describing a bug and PRs witch fixes it. label Dec 14, 2021
@hannesj
hannesj merged commit 14ebf4e into opentripplanner:dev-2.x Dec 14, 2021
t2gran pushed a commit that referenced this pull request Dec 14, 2021
@hannesj
hannesj deleted the otp2_fix_unscheduled_flex branch December 14, 2021 10:40
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