AutocompleteConfig
public class AutocompleteConfig : NSObject
Encapsulates request parameters for autocomplete requests.
-
Text to search for within components of the location. This value is required to execute an autocomplete request.
Declaration
Swift
public var searchText: String -
Optional point to order results by where results closer to this value are returned higher in the list.
Declaration
Swift
public var focusPoint: GeoPoint -
Initialize an autocomplete config with all the required parameters and a focus point.
Declaration
Swift
public init(searchText: String, focusPoint: GeoPoint, completionHandler: @escaping (SearchResponse) -> Void)Parameters
searchTextText to search for within components of the location.
focusPointThe point to order results around where results closer to this value are returned higher in the list.
completionHandlerThe closure to execute when the request suceeds or fails.
View on GitHub
AutocompleteConfig Class Reference