getContourGeographicArea method

RectangleGeographicArea getContourGeographicArea({
  1. bool relevantOnly = true,
})

Retrieves the contour geographic bounding rectangle for this landmark.

Landmarks can have complex contours; this method returns a rectangle that bounds the contour. Use relevantOnly to request a reduced bounding box when available.

Parameters

  • relevantOnly: If true, returns the relevant (smaller) contour bounding box when available; otherwise returns the full contour bounding box.

Returns

Implementation

RectangleGeographicArea getContourGeographicArea({
  final bool relevantOnly = true,
}) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'Landmark',
    'getContourGeograficArea',
    args: relevantOnly,
  );

  return RectangleGeographicArea.fromJson(resultString['result']);
}