SearchQueryConfiguration
public struct SearchQueryConfiguration
Defines essential attributes of the search query
Important
This is a Public Preview API. It may be changed or removed at any time.Default limit of search results.
Declaration
Swift
public static let defaultLimit: Int
Commands that can be used to perform certain actions for certain terms entered into the search field.
Declaration
Swift
public let developerCommands: [SearchDeveloperCommand]
Fuzziness level. Ranges from 1 to 4 and defaults to 2.
Declaration
Swift
public let fuzzyLevel: Int?
Declaration
Swift
public init(
lastLocationProvider: LastUserLocationProviderProtocol? = nil,
developerCommands: [SearchDeveloperCommand] = [],
fuzzyLevel: Int? = nil,
limit: Int = SearchQueryConfiguration.defaultLimit,
radius: Int? = nil,
locale: Locale = Locale.current
)
A provider of the last user location.
Declaration
Swift
public let lastLocationProvider: LastUserLocationProviderProtocol?
Maximum number of search results.
Declaration
Swift
public let limit: Int
Locale of the search results.
Declaration
Swift
public let locale: Locale
Search radius relative to user position. This parameter will be used only if the user position is available.
Declaration
Swift
public let radius: Int?