WhichPolygon<T> class
Index for matching points against a set of GeoJSON polygons.
Constructors
-
WhichPolygon.new(Iterable<
Map< features)String, dynamic> > - Reads a GeoJSON-like collection of features, and stores all polygon and multipolygon geometries along with their properties in an r-tree.
- WhichPolygon.fromSerialized(dynamic data)
- Instantiates the class using an object from serialize.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
all(
double lon, double lat) → List< T> -
Returns all polygons that contain the (
lon
,lat
) location. -
bbox(
double minLon, double minLat, double maxLon, double maxLat) → List< T> - Returns all polygons that intersect with the given bounding box.
-
call(
double lon, double lat) → T? - Returns a single polygon matching the location. An alias for one.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
one(
double lon, double lat) → T? -
Returns a single polygon containing the (
lon
,lat
) location. Ornull
if nothing is found. -
serialize(
) → dynamic - Returns a serializable object that can be passed between threads.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited