PoisData class
Data class representing the Points Of Interest (POI)s of an area.
Inherits a GeoJsonFeatureCollection and includes its bounding box coordinates bbox and features. Additionally includes information about the POIs.
- Inheritance
-
- Object
- GeoJsonFeatureCollection
- PoisData
Constructors
-
PoisData({required List<
ORSCoordinate> bbox, required List<GeoJsonFeature> features, required PoisInformation information}) -
const
-
PoisData.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
bbox
→ List<
ORSCoordinate> -
The bounding box of the requested feature collection's area.
Should have 2 coordinates.
finalinherited
-
features
→ List<
GeoJsonFeature> -
The list of features of the requested feature collection.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- information → PoisInformation
-
final
- 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'.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited