CircleGeographicArea class Geographic

Circular geographic area defined by center coordinates and radius in meters.

Represents a circular region around a specific geographic point, useful for proximity-based operations, geofencing applications, and simple area approximations. The circle is defined by its center point and a radius measured in meters from that center.

The containment test uses the great-circle distance between the test point and the center, comparing it against the specified radius.

See also:

Implemented types

Constructors

CircleGeographicArea({required int radius, required Coordinates centerCoordinates})
Creates a circular geographic area with specified center and radius.

Properties

boundingBox → RectangleGeographicArea
Gets the smallest rectangle that completely encloses this geographic area.
no setteroverride
centerCoordinates ↔ Coordinates
The center point of the circular area.
getter/setter pair
centerPoint → Coordinates
Gets the representative center point of this geographic area.
no setteroverride
hashCode → int
The hash code for this object.
no setteroverride
isDefault → bool
Indicates whether this geographic area is in a default or empty state.
no setteroverride
radius ↔ int
The radius of the circle in meters.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type → GeographicAreaType
Gets the specific type identifier for this geographic area implementation.
no setteroverride

Methods

containsCoordinates(Coordinates point) → bool
Tests whether a coordinate point lies within this geographic area.
override
convert(GeographicAreaType toType) → GeographicArea?
Attempts to convert this geographic area to a different type.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets this geographic area to its default empty state.
override
toJson() → Map<String, dynamic>
Serializes this instance to a JSON-compatible map.
toString() → String
A string representation of this object.
override

Operators

operator ==(covariant CircleGeographicArea other) → bool
The equality operator.
override