LocationSet class
An object to define regions where something should or should not be included. Regions are referenced by any of the following:
- Strings recognized by the CountryCoder class. These include ISO-3166-1 codes, UN M.49 numeric codes, and some Wikidata QIDs. See ideditor.codes for a full list.
- Filenames for custom geojson features. Pass them to LocationMatcher
class if you need as a GeoJSON object. Each feature should have an
id
that ends in.geojson
. For example,new-jersey.geojson
. - Circular areas defined with LocationSetRadius objects.
See location-conflation for some information, although there can be differences due to different implementation in this library.
Constructors
-
LocationSet.new({List<
String> include = const [], List<String> exclude = const [], List<LocationSetRadius> includeCircular = const [], List<LocationSetRadius> excludeCircular = const []}) -
const
-
LocationSet.fromJson(Map<
String, dynamic> data)
Properties
-
exclude
→ List<
String> -
final
-
excludeCircular
→ List<
LocationSetRadius> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
include
→ List<
String> -
final
-
includeCircular
→ List<
LocationSetRadius> -
final
- isEmpty → bool
-
no setter
- 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, List> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited