addWaypoint method

Future<void> addWaypoint(
  1. GeoPoint location, {
  2. Map<String, dynamic>? extra,
})

Add a common_pb.GeoPoint to the service's data storage of waypoints.

For more information, see the navigation service docs.

Implementation

Future<void> addWaypoint(common_pb.GeoPoint location, {Map<String, dynamic>? extra}) async {
  final request = AddWaypointRequest(name: name, location: location, extra: extra?.toStruct());
  await client.addWaypoint(request, options: callOptions);
}