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.

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<Coordinate> 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<Coordinate>
final
features List<GeoJsonFeature>
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