-
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
package delivery/ride sharing waypoint demo #641
Conversation
…ty. Added alert dialog which is triggered when arriving at a destination.
…o it's item in the menu
…ons. It was instead always using the first set of options that were set.
…ypoint navigation and dialog working, and cleaned up code.
Nice work! Looping in @bsudekum and @ericdeveloper in on this as well for 👀. |
Once the next leg has started, I think we should remove the previous destination marker. |
@@ -341,6 +346,11 @@ public void updateLocationLayer(Location location) { | |||
* @param options with containing route / coordinate data | |||
*/ | |||
public void startNavigation(NavigationViewOptions options) { | |||
for (Marker marker : markers) { |
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 clarity, can we extract the removal of these markers into a private
method (something like clearMarkers()
?
@@ -84,6 +84,8 @@ public void updateShouldSimulateRoute(boolean shouldSimulateRoute) { | |||
* @param route to be mocked | |||
*/ | |||
public void updateRoute(DirectionsRoute route) { | |||
// MockLocationEngine is deactivated first to avoid weird behavior with subsequent navigation sessions | |||
deactivateLocationEngine(); |
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.
Can we test with this removed now that we merged in the fix from #646?
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.
Looks great, found some good bugs with NavigationView
implementing this example
This PR is for the example for a Package Delivery/Ride Share service that needs to be able to navigate to multiple destinations. On arrival, the driver is given an alert dialog which gives them the option to navigate to next destination, or to cancel.
A few things I wanted to bring up for discussion:
cc. @ericrwolfe @danesfeder