SearchPreferences class Places
SearchPreferences defines preferences for search operations.
It’s used to tune matching behavior, result volume and scope before invoking search APIs, so callers can control fuzziness, address/POI inclusion, whether to rely on offline data only and distance/filters that limit the search domain.
See the SearchService for search operations.
Constructors
- SearchPreferences.new({bool allowFuzzyResults = true, bool estimateMissingHouseNumbers = true, bool exactMatch = false, int maxMatches = 40, bool searchAddresses = true, bool searchMapPOIs = true, bool searchOnlyOnboard = false, int thresholdDistance = 2147483647, bool easyAccessOnlyResults = false})
-
Creates a SearchPreferences object with the specified options.
factory
Properties
- allowFuzzyResults ↔ bool
-
Test if fuzzy search results are allowed.
getter/setter pair
- easyAccessOnlyResults ↔ bool
-
Test if easy access filter is enabled.
getter/setter pair
- estimateMissingHouseNumbers ↔ bool
-
Test if estimating house numbers not present in map data is allowed.
getter/setter pair
- exactMatch ↔ bool
-
Test if exact match is used.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- landmarks → LandmarkStoreCollection
-
Get access to the search target landmark stores collection.
no setter
- maxMatches ↔ int
-
Get the maximum number of matches.
getter/setter pair
- overlays → OverlayMutableCollection
-
Get access to the search target overlays collection.
no setter
- pointerId → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchAddresses ↔ bool
-
Check if search through addresses is enabled.
getter/setter pair
- searchMapPOIs ↔ bool
-
Check if search through map POIs is enabled.
getter/setter pair
- searchOnlyOnboard ↔ bool
-
Get the flag for onboard search.
getter/setter pair
- thresholdDistance ↔ int
-
Get the threshold distance for the request.
getter/setter pair
Methods
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerAutoReleaseObject(
int pointerId) → void -
Registers an object for auto release.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited