-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add distance for stop-to-stop shapes, PointsOnLink in Transmodel API #6982
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
base: dev-2.x
Are you sure you want to change the base?
Conversation
This class is not serialized in OTP and we want to change the class to be lazy-initialized.
…aphQL schema # Conflicts: # application/src/main/java/org/opentripplanner/api/model/geometry/EncodedPolyline.java
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6982 +/- ##
=============================================
- Coverage 72.19% 72.17% -0.02%
- Complexity 19838 19845 +7
=============================================
Files 2155 2155
Lines 80044 80084 +40
Branches 8082 8084 +2
=============================================
+ Hits 57789 57804 +15
- Misses 19407 19429 +22
- Partials 2848 2851 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
/// Returns the sum of the distances in between the pairs of coordinates in meters. | ||
/// If the number of coordinates is empty or just one(a point), then `0` is returned. |
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 haven't seen markdown comments in OTP before, do you think we should start using them even though they're not really supported until java 23?
It will be nice to not have to write html
Summary
distance
field toPointsOnLink
GraphQL type that returns the distance in meters for encoded polyline segmentsEncodedPolyline
to compute distance independently from polyline encodingsumDistances(Coordinate[])
overload inGeometryUtils
to support distance calculation from coordinate arraysIssue
Closes #6981
Unit tests
Documentation
Changelog
✅ Relevant for changelog
Bumping the serialization version id
🟥 No changes to serialized classes -
EncodedPolyline
is not part of the serialized graph model