GeoJSONPoint class
A class representing a GeoJSON Point.
A Point object represents a single location in coordinate space. The coordinates property of the Point object is an array of length 2 (for 2D points), with the first element being the longitude and the second element being the latitude.
- Implemented types
Constructors
-
GeoJSONPoint(List<
double> coordinates) -
Constructs a GeoJSONPoint from the provided list of
coordinates
. - GeoJSONPoint.fromJSON(String source)
-
Constructs a GeoJSONPoint from a JSON string.
factory
-
GeoJSONPoint.fromMap(Map<
String, dynamic> map) -
Constructs a GeoJSONPoint from a Map.
factory
Properties
- area → double
-
Gets the area of the geometry.
no setteroverride
-
bbox
→ List<
double> -
An optional bounding box bbox of the GeoJSON object.
no setteroverride
-
coordinates
↔ List<
double> -
The coordinates of this Point, represented as an array of doubles.
getter/setter pair
- distance → double
-
Gets the distance of the geometry.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ GeoJSONType
-
Specifies the type of GeoJSON Geometry.
getter/setter pairoverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJSON(
{int indent = 0}) → String -
Converts the object to a JSON string representation.
override
-
toMap(
) → Map< String, dynamic> -
Converts GeoJSON object to a Map.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override