-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not allowed transfers and support for GTFS transfer points #3792
Not allowed transfers and support for GTFS transfer points #3792
Conversation
9d64941
to
ca028ac
Compare
Use a constant, REGULAR_TRANSFER instead of null to represent transfer constraint in boarding events. This enable the constrained transfer search to return a regular transfer and avoid null checking.
One of the test is disabled, because it fails. I will fix the bug and enable the test in a later commit.
When TripTimes are added to the trip, it trip times are also added to the "local list of trips" - witch is a aggregated temporary list, this has of cause no effect.
When TripTimes are added to the trip, it trip times are also added to the "local list of trips" - witch is a aggregated temporary list, this has of cause no effect.
ca028ac
to
02e1dcb
Compare
src/main/java/org/opentripplanner/gtfs/mapping/TransferMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/gtfs/mapping/TransferMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/model/transfer/ConstrainedTransfer.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/model/transfer/TransferConstraint.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/model/transfer/StopTransferPoint.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've made a few comments about names.
I ran this with the GTFS Flex example feed and there I saw a NPE when starting up OTP:
So it seems that you can have a stop with which doesn't have a pattern. |
The StopPattern improve the memory footprint allowing multiple TripPatterns using the same sequence of stops to ref the same StopPattern. review: Get approval for API change in DigitransitStopPropertyMapper
- The Transfer report is improved - OTP serialization version id incremented
a956fcf
to
1390922
Compare
...tripplanner/routing/algorithm/raptor/transit/constrainedtransfer/TransferIndexGenerator.java
Show resolved
Hide resolved
Co-authored-by: Leonard Ehrenfried <[email protected]>
- refactor: Remove unused code in TransferMapper - refactor: Rename applyToAllTrips to appliesToAllTrips
I'm going to turn off the codecov bot. |
I've committed the configuration file directly to dev-2.x. If you merge again, the codecov bot will disappear. |
...in/java/org/opentripplanner/routing/algorithm/raptor/transit/mappers/AccessEgressMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/model/transfer/TransferPoint.java
Outdated
Show resolved
Hide resolved
...pplanner/routing/algorithm/raptor/transit/constrainedtransfer/ConstrainedBoardingSearch.java
Outdated
Show resolved
Hide resolved
...ext/java/org/opentripplanner/ext/vectortiles/layers/stops/DigitransitStopPropertyMapper.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/model/transfer/TransferPoint.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/model/transfer/TransferPoint.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/model/transfer/TransferPoint.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/model/transfer/TransferPoint.java
Outdated
Show resolved
Hide resolved
…ferPoint.java Co-authored-by: Hannes Junnila <[email protected]>
5ccb134
to
1e82238
Compare
…sfers # Conflicts: # src/main/java/org/opentripplanner/routing/stoptimes/StopTimesHelper.java # src/test/java/org/opentripplanner/routing/algorithm/mapping/__snapshots__/TransitSnapshotTest.snap
Summary
Explain in one or two sentences what this PR achieves.
Issue
Link to or create an issue that describes the relevant feature or bug.
You need not create an issue for small bugfixes and code cleanups, but in that case do describe the problem clearly and completely in the "summary" section above.
In the linked issue (or summary section for smaller PRs) please describe:
Remember that the PR will be reviewed by another developer who may not be familiar with your use cases or the code you're modifying. It generally takes much less effort for the author of a PR to explain the background and technical details than for a reviewer to infer or deduce them. PRs may be closed if they or their linked issues do not contain sufficient information for a reviewer to proceed.
Add GitHub keywords to this PR's description, for example:
closes #45
Unit tests
Write a few words on how the new code is tested.
Code style
Have you followed the suggested code style?
Documentation
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.