GeoJsonFeature class
A feature of an Isochrone or Directions API endpoint response formatted as geojson.
Includes its geometry and properties.
Constructors
-
GeoJsonFeature({required String type, required Map<
String, dynamic> properties, required GeoJsonFeatureGeometry geometry, List<ORSCoordinate> ? bbox}) -
const
-
GeoJsonFeature.fromJson(Map<
String, dynamic> json)
Properties
-
bbox
→ List<
ORSCoordinate> ? -
The bounding box of the requested feature's area.
final
- geometry → GeoJsonFeatureGeometry
-
The geometry of the feature as GeoJsonFeatureGeometry.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
properties
→ Map<
String, dynamic> -
The properties of the feature as Map of
String
keys anddynamic
values to keep up with the API's unconstrained response.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
The type of the feature.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the GeoJsonFeature to a Map with keys 'type', 'properties' and 'geometry'.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited