-
Notifications
You must be signed in to change notification settings - Fork 319
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 telem absolute distance to destination track support #427
Conversation
e47e283
to
3f0ae14
Compare
* AbsoluteDistance Calculation * Connect Absolute Distance * Move to DistanceUtils
- Fixed conflicts - added method to handle final location from MetricsRouteProgress - passes local tests
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.
@electrostat Looking great - just two nit picks, then let's 🚀
return finalManuever.location(); | ||
} | ||
|
||
return new Point() { |
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 can be simplified to return Point.fromLatLng(0d, 0d);
|
||
public Point getDirectionsRouteDestination() { | ||
StepManeuver finalManuever = directionsRoute.legs().get(directionsRoute.legs().size() - 1).steps() | ||
.get(directionsRoute.legs().get(directionsRoute.legs().size() - 1).steps().size() - 1).maneuver(); |
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.
For readability, can we extract this into separate variables?
RouteLeg lastLeg = route.legs().get(route.legs().size() - 1);
LegStep lastStep = lastLeg.steps().get(lastLeg.steps().size() - 1);
StepManeuver finalManeuver = lastStep.maneuver();
- clean-up getDirectionsRouteDestination() - make more readable
…android into fix-build * 'master' of https://github.com/mapbox/mapbox-navigation-android: Bumped version number to 0.7.0 in readme (mapbox#496) Release 0.7.0 (mapbox#497) Portrait / landscape layouts are different. Only cast to View (mapbox#494) Add missing javadoc for feedback methods in MapboxNavigation (mapbox#493) Update lane stylekit and then maneuver bias (mapbox#492) Fix bug with bottom sheet behavior null onConfigChange (mapbox#490) Fix issue where new route was not being detected (mapbox#478) Add telem absolute distance to destination track support (mapbox#427) Adjust Instruction Content Layout XML (mapbox#465) Fix bug with bottomsheet not hiding in night mode (mapbox#483) Cleanup / javadoc (mapbox#479) Initialize click listeners after presenter / viewmodel is set (mapbox#481) Create SpanUtil and SpanItem to more easily format Strings for our views (mapbox#477) Check for null or empty String speechUrl before playing (mapbox#475) Update location layer to 0.2.0 and re-add as lifecycle observer (mapbox#473) Check for null raw location before setting bearing (mapbox#476) # Conflicts: # libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationMetricsWrapper.java
absoluteDistanceToDestination
track supportThis PR depends on mapbox/mapbox-java#615
TODO
0
asabsoluteDistanceToDestination
(placeholder), this needs to be taken fromRouteProgress
somehow.2.2.7
) lands👀 @zugaldia @danesfeder @electrostat @ericrwolfe