GeoJSONLineString class
A class representing a GeoJSON LineString.
A LineString is a curve with linear interpolation between points. Each segment of the LineString is a line in the two-dimensional coordinate plane.
- Implemented types
Constructors
-
GeoJSONLineString(List<
List< coordinates)double> > - Constructs a GeoJSONLineString from the provided list of coordinates.
- GeoJSONLineString.fromJSON(String source)
-
Constructs a GeoJSONLineString from a JSON string.
factory
-
GeoJSONLineString.fromMap(Map<
String, dynamic> map) -
Constructs a GeoJSONLineString 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<
List< double> > -
The coordinates of this LineString, represented as an array of point
coordinates.
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