SearchPreferences class Places
Preferences for search operations from SearchService.
Configures how search APIs behave: matching fuzziness, whether addresses or POIs are included, limits on result volume, and whether searches should use onboard (offline) data only. Use this object to prepare parameters before calling search APIs.
See also:
- SearchService: Entry points for performing search operations.
- GuidedAddressSearchPreferences: Preferences specific to guided address searches via GuidedAddressSearchService.
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})
-
Create a SearchPreferences instance with the selected options.
factory
Properties
- allowFuzzyResults ↔ bool
-
Whether fuzzy search results are allowed.
getter/setter pair
- easyAccessOnlyResults ↔ bool
-
Whether the easy-access filter for results is enabled.
getter/setter pair
- estimateMissingHouseNumbers ↔ bool
-
Whether estimation of missing house numbers is enabled.
getter/setter pair
- exactMatch ↔ bool
-
Whether exact-match mode is enabled.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- landmarks → LandmarkStoreCollection
-
Collection of landmark stores used as search targets.
no setter
- maxMatches ↔ int
-
Maximum number of matches returned by search operations.
getter/setter pair
- overlays → OverlayMutableCollection
-
Mutable collection of overlays considered during search.
no setter
- pointerId → int
-
The pointer ID of the native object
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchAddresses ↔ bool
-
Whether searching through addresses (including roads) is enabled.
getter/setter pair
- searchMapPOIs ↔ bool
-
Whether searching map POIs is enabled.
getter/setter pair
- searchOnlyOnboard ↔ bool
-
Whether searches are restricted to onboard (offline) data.
getter/setter pair
- thresholdDistance ↔ int
-
Threshold distance (in meters) applied to search operations.
getter/setter pair
Methods
-
dispose(
) → void -
Disposes the native object.
inherited
-
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