-
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
Initial implementation of via search #4554
Initial implementation of via search #4554
Conversation
- Worker to find trips with Via points - Unit test for ViaRoutingWorker
Codecov ReportBase: 60.42% // Head: 60.52% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #4554 +/- ##
=============================================
+ Coverage 60.42% 60.52% +0.10%
- Complexity 12163 12216 +53
=============================================
Files 1578 1584 +6
Lines 63256 63483 +227
Branches 6986 7006 +20
=============================================
+ Hits 38221 38426 +205
- Misses 22854 22872 +18
- Partials 2181 2185 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
src/main/java/org/opentripplanner/routing/api/request/request/ViaLocation.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/response/ViaRoutingResponse.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/algorithm/via/ViaRoutingWorker.java
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/algorithm/via/ViaRoutingWorker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/algorithm/via/ViaRoutingWorker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/algorithm/via/ViaRoutingWorker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/algorithm/via/ViaRoutingWorker.java
Outdated
Show resolved
Hide resolved
src/test/java/org/opentripplanner/routing/algorithm/via/TestViaRoutingWorker.java
Outdated
Show resolved
Hide resolved
- RouteViaRequest removed reference to RouteRequest - ViaLocation with default values for maxSlack, minSlack - ViaRoutingWorker with sensible name on predicate - Rename TestViaRoutingWorker to ViaRoutingWorkerTest
src/main/java/org/opentripplanner/routing/algorithm/via/ViaRoutingWorker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/ViaLocation.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/algorithm/via/ViaRoutingWorker.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
- Utility function to create validation exception - null check on ViaLocation constructor
- Refactor RouteViaRequest with Builder pattern
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/ViaLocation.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/RouteRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
private boolean timetableView; | ||
private boolean arriveBy; | ||
private Locale locale; | ||
private JourneyRequest journey; |
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.
private JourneyRequest journey; |
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/routing/api/request/request/RouteViaRequest.java
Outdated
Show resolved
Hide resolved
} else { | ||
this.request.setTo(request.routeRequest().to()); | ||
} | ||
|
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.
this.request.setJourney(v.journeyRequest()); | |
Summary
Via searches - Part D
Issue
#4494
Unit tests