navigateToLocation method
Plan an obstacle-aware path to a saved location and start driving it. Returns once the goal is accepted; track progress with getNavigationStatus.
// Example:
final status = await myNavigationService.navigateToLocation('kitchen');
For more information, see the navigation service docs.
Implementation
Future<NavigationStatus> navigateToLocation(String locationName, {Map<String, dynamic>? extra}) async {
final request = NavigateToLocationRequest(name: name, locationName: locationName, extra: extra?.toStruct());
final response = await client.navigateToLocation(request, options: callOptions);
return response.status;
}