getObstacles method

Future<List<GeoGeometry>> getObstacles({
  1. Map<String, dynamic>? extra,
})

Get an array of common_pb.GeoGeometrys representing obstacles that the service is aware of.

For more information, see the navigation service docs.

Implementation

Future<List<common_pb.GeoGeometry>> getObstacles({Map<String, dynamic>? extra}) async {
  final request = GetObstaclesRequest(name: name, extra: extra?.toStruct());
  final response = await client.getObstacles(request, options: callOptions);
  return response.obstacles;
}