-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add support for Stop IDs/indexes in RaptorDebug #7113
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
Add support for Stop IDs/indexes in RaptorDebug #7113
Conversation
…teRequest) The ID lookup is done the RaptorRequestMapper
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #7113 +/- ##
=============================================
+ Coverage 72.06% 72.09% +0.03%
- Complexity 20659 20706 +47
=============================================
Files 2235 2241 +6
Lines 83566 83725 +159
Branches 8344 8355 +11
=============================================
+ Hits 60220 60362 +142
- Misses 20422 20434 +12
- Partials 2924 2929 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
application/src/main/java/org/opentripplanner/routing/api/request/DebugRaptorBuilder.java
Outdated
Show resolved
Hide resolved
...org/opentripplanner/routing/algorithm/raptoradapter/transit/mappers/RaptorRequestMapper.java
Show resolved
Hide resolved
leonardehrenfried
left a comment
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 have a few small comments.
| public class RaptorRequestMapper<T extends RaptorTripSchedule> { | ||
|
|
||
| private static final Logger LOG = LoggerFactory.getLogger(RaptorRequestMapper.class); | ||
| private static final Pattern NUMBER_PATTERN = Pattern.compile("\\d+"); |
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 is never used
jessicaKoehnke
left a comment
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.
one small thing
...org/opentripplanner/routing/algorithm/raptoradapter/transit/mappers/RaptorRequestMapper.java
Outdated
Show resolved
Hide resolved
357d207 to
d107baa
Compare
Summary
This add support for IDs, not just raptor stop indexes as the input to OTP when debugging path/stops in Raptor. This is a very small improvement and it only apply to debugging travel searches - it does not have an effect on the search itself. The parameter is no exposed on any API, set from
InteractiveOTPMainandSpeedTest.Issue
🟥 No issue, very small improvement.
Closes #45
Unit tests
✅ Updated
Documentation
✅ JavaDoc updated
Changelog
🟥 Not relevant
Bumping the serialization version id
✅
RouteRequest->DebugRaptoris changed, stops and path fields go frominttoString.