public void OnProgressChange(Location p0, RouteProgress p1) { bool isCurrentStepArrival = p1.CurrentLegProgress().CurrentStep().Maneuver().Type() .Contains(NavigationConstants.StepManeuverTypeArrive); if (isCurrentStepArrival && !paellaPickedUp) { UpdateUiDelivering(); } else if (isCurrentStepArrival && paellaPickedUp) { UpdateUiDelivered(); } }
public override string BuildInstruction(RouteProgress routeProgress) { return(routeProgress.CurrentLegProgress().UpComingStep().Maneuver().Instruction()); }