RegionFeatureCollection class

Constructors

RegionFeatureCollection(Map<String, dynamic> featureCollection)
RegionFeatureCollection.fromSerialized(List data)
Restores inner structures from the serialized data.

Properties

hashCode int
The hash code for this object.
no setterinherited
regions List<RegionFeature>
latefinal
regionsByCode Map<String, RegionFeature>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
whichPolygon WhichPolygon<RegionFeature>
latefinal

Methods

countryRegion(double lon, double lat) RegionFeature?
Returns the country feature containing loc, if any.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
regionForID(dynamic id) RegionFeature?
regionForLoc(double lon, double lat, {RegionLevel? level, RegionLevel? maxLevel, RegionProperties? withProp}) RegionFeature?
Returns the feature containing loc for the opts, if any.
regionsContaining({double? lon, double? lat, List<double>? bbox, dynamic query, bool strict = false}) List<RegionFeature>
regionsIn(dynamic id, [bool strict = false]) List<RegionFeature>
Returns the region matching id and all regions it contains, if any. If passing true for strict, an exact match will not be included.
serialize() List
smallestRegion(double lon, double lat) RegionFeature?
Returns the smallest feature of any kind containing the point, if any.
smallestRegionsForBBox(double minLon, double minLat, double maxLon, double maxLat) List<RegionFeature>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited