LocationMatcher class
A callable class to match a location against a LocationSet.
Pass a feature collection to the constructor to use additional
features. These features need to have id
properties ending with
".geojson".
You need to initialize the CountryCoder before using this class
with a CountryCoder.instance.load()
or loadAsync()
.
Constructors
-
LocationMatcher([Map<
String, dynamic> ? featureCollection]) - LocationMatcher.fromSerialized(dynamic data)
- Instantiates the class using an object from serialize.
Properties
- additionalPolygons ↔ WhichPolygon
-
latefinal
- countryCoder → CountryCoder
-
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
-
call(
double lon, double lat, LocationSet locationSet) → bool -
Tests whether a location (
lon
,lat
) matches thelocationSet
rules. First checks forexclude
rules, so excluding a country but including a city in it won't work. Empty rules satisfy any location. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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