AutocompleteGeoBias
public class AutocompleteGeoBias
AutocompleteGeoBias represents geographical bias used by the autocomplete engine to improve search results.
AutocompleteGeoBias is part of the definition for AutocompleteSummary which is returned from the Search.autocomplete(options:completion:) method.
Fox example, for the geobias Amsterdam query “Fie” can return the autocomplete result “Fietsenwinkel.nl”, for the geobias Berlin query “Fie” can return the autocomplete result “Fielmann”.
-
Creates a geographical bias object for autocomplete requests.
If only
positionis defined, the autocomplete results are biased towards that position. If bothpositionandradiusare set, the autocomplete results are limited to the specified radius around the position.Declaration
Swift
required public init(position: CLLocationCoordinate2D, radius: Measurement<UnitLength>?)Parameters
positionThe geographical position used to bias the autocomplete results.
radiusThe radius within which the autocomplete search is performed. (optional)
-
The geographical position used to bias the autocomplete results.
Declaration
Swift
public let position: CLLocationCoordinate2D -
The radius used for the autocomplete search. If not specified, the search is not limited by radius.
Declaration
Swift
public let radius: Measurement<UnitLength>?
TomTom SDK for iOS (0.53.1)
AutocompleteGeoBias