GeoJsonFeatureCollection class
Data that represents GeoJSON feature collection for Isochrone or Direction Data models in their respective endpoints.
Includes its bounding box coordinates bbox and features.
Used by APIs:
https://openrouteservice.org/dev/#/api-docs/geocode/search/get
https://openrouteservice.org/dev/#/api-docs/geocode/autocomplete/get
https://openrouteservice.org/dev/#/api-docs/v2/directions/{profile}/geojson/post
https://openrouteservice.org/dev/#/api-docs/v2/isochrones/{profile}/post
- Implementers
Constructors
-
GeoJsonFeatureCollection({required List<
ORSCoordinate> bbox, required List<GeoJsonFeature> features}) -
const
-
GeoJsonFeatureCollection.fromJson(Map<
String, dynamic> json) -
Generate a GeoJsonFeatureCollection from a received Map having keys
'bbox' and 'features'.
factory
Properties
-
bbox
→ List<
ORSCoordinate> -
The bounding box of the requested feature collection's area.
Should have 2 coordinates.
final
-
features
→ List<
GeoJsonFeature> -
The list of features of the requested feature collection.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the GeoJsonFeatureCollection to a Map with keys 'type', 'bbox' and 'features'.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited