boundingBox property

RectangleGeographicArea get boundingBox

Bounding box that encloses the event geometry.

Use this when you need a simple rectangle containing the event. For precise shapes prefer the area when available.

Returns

Also see:

  • area — precise geographic area of the event, in case of area-based events.

Implementation

RectangleGeographicArea get boundingBox {
  final OperationResult resultString = objectMethod(
    pointerId,
    'TrafficEvent',
    'getBoundingBox',
  );

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