SearchOptions
public struct SearchOptionsSpecifies fuzzy search options.
- 
                  init(query:geoBias: limit: searchAreas: locale: categoryIDs: openingHoursMode: countryCodes: brands: minPower: maxPower: fuelTypes: resultTypes: connectors: sessionID: ) Creates SearchOptions to perform a fuzzy search request. DeclarationSwift public init( query: String = "", geoBias: CLLocationCoordinate2D? = nil, limit: Int = 10, searchAreas: Set<Geometry> = [], locale: Locale = Locale.current, categoryIDs: Set<POICategoryID> = [], openingHoursMode: OpeningHoursMode? = .nextSevenDays(from: Date()), countryCodes: Set<String> = [], brands: Set<Brand> = [], minPower: Measurement<UnitPower>? = nil, maxPower: Measurement<UnitPower>? = nil, fuelTypes: Set<FuelType> = [], resultTypes: Set<SearchResultType> = [], connectors: Set<ConnectorType> = [], sessionID: UUID? = nil )ParametersqueryThe search query. geoBiasThe coordinates where results should be biased. limitThe maximum number of search results that will be returned. searchAreasThe geographic filter for search, all search results returned are confined in the specified geography. localeThe language in which search results should be returned. If not specified, language is set to the default official language of the location of the result. categoryIDsRestricts the Points Of Interest in the response to those whose category ID is listed. openingHoursModeScope of the opening hours to be provided. If the parameter is set to nil, no opening hours are returned in the response. By default, requests opening hours for the next seven (7) days. If a chosen mode contains an associated start date, it is ignored by the backend.countryCodesA set of ISO 3166-1 alpha3 country codes. (e.g., FRA, ESP, USA). This will limit the search to the specified countries. brandsA set of brands used to restrict the result to POIs associated with those brands. minPowerThe minimal power that a charging station can provide. maxPowerThe maximal power that a charging station can provide. fuelTypesA set of fuel types that a gas station can provide. resultTypesA set of SearchResultTypeto filter results.connectorsA set of connector types that a charging station supports. See https://developer.tomtom.com/search-api/search-api-documentation/supported-connector-types for more details. sessionIDA search session is a user session during which a user performs multiple search requests to find a specific address or point of interest. This is needed for sending feedback to the online search. 
- 
                  init(query:geoBias: sortOrder: limit: searchAreas: locale: categoryIDs: openingHoursMode: countryCodes: brands: minPower: maxPower: fuelTypes: resultTypes: connectors: sessionID: ) Creates SearchOptions to perform fuzzy search request. DeclarationSwift @available(*, deprecated, renamed: "init(query:geoBias:limit:searchAreas:locale:categoryIDs:openingHoursMode:countryCodes:brands:minPower:maxPower:fuelTypes:resultTypes:connectors:sessionID:﹚", message: "This API is deprecated and will be removed with the next major release.") public init( query: String = "", geoBias: CLLocationCoordinate2D? = nil, sortOrder: SortOrder = .byDetourTime, limit: Int = 10, searchAreas: Set<Geometry> = [], locale: Locale = Locale.current, categoryIDs: Set<POICategoryID> = [], openingHoursMode: OpeningHoursMode? = .nextSevenDays(from: Date()), countryCodes: Set<String> = [], brands: Set<Brand> = [], minPower: Measurement<UnitPower>? = nil, maxPower: Measurement<UnitPower>? = nil, fuelTypes: Set<FuelType> = [], resultTypes: Set<SearchResultType> = [], connectors: Set<ConnectorType> = [], sessionID: UUID? = nil )ParametersqueryThe search query. geoBiasThe coordinates where results should be biased. sortOrderDetermines order of the results. Defaults to byDetourTime.limitThe maximum number of search results that will be returned. searchAreasThe geographic filter for search, all search results returned are confined in the specified geography. localeThe language in which search results should be returned. If not specified, language is set to the default official language of the location of the result. categoryIDsRestricts the Points Of Interest in the response to those whose category ID is listed. openingHoursModeScope of the opening hours to be provided. If the parameter is set to nil, no opening hours are returned in the response. By default, requests opening hours for the next seven (7) days. If a chosen mode contains an associated start date, it is ignored by the backend.countryCodesA set of ISO 3166-1 alpha3 country codes. (e.g., FRA, ESP, USA). This will limit the search to the specified countries. brandsA set of brands used to restrict the result to POIs associated with those brands. minPowerThe minimal power that a charging station can provide. maxPowerThe maximal power that a charging station can provide. fuelTypesA set of fuel types that a gas station can provide. resultTypesA set of SearchResultTypeto filter results.connectorsA set of connector types that a charging station supports. See https://developer.tomtom.com/search-api/search-api-documentation/supported-connector-types for more details. sessionIDA search session is a user session during which a user performs multiple search requests to find a specific address or point of interest. This is needed for sending feedback to the online search. 
- 
                  init(query:route: maxDetourDuration: sortOrder: limit: locale: categoryIDs: openingHoursMode: brands: minPower: maxPower: fuelTypes: connectors: sessionID: ) Creates SearchOptions to perform search along a route request. DeclarationSwift public init( query: String = "", route: [CLLocationCoordinate2D], maxDetourDuration: Measurement<UnitDuration> = Defaults.maxDetourTime, sortOrder: SortOrder = .byDetourTime, limit: Int = 10, locale: Locale = Locale.current, categoryIDs: Set<POICategoryID> = [], openingHoursMode: OpeningHoursMode? = .nextSevenDays(from: Date()), brands: Set<Brand> = [], minPower: Measurement<UnitPower>? = nil, maxPower: Measurement<UnitPower>? = nil, fuelTypes: Set<FuelType> = [], connectors: Set<ConnectorType> = [], sessionID: UUID? = nil )ParametersqueryThe search query. routeA list of coordinates forming a route, along which the search is to be done. maxDetourDurationThe maximum time added to the estimated time of arrival at the destination because of the route change. Max supported detour time is defined in Defaults.maxDetourTime.sortOrderDetermines order of the results. Defaults to byDetourTime.limitThe maximum number of search results that will be returned. localeThe language in which search results should be returned. If not specified, language is set to the default official language of the location of the result. categoryIDsRestricts the Points Of Interest in the response to those whose category ID is listed. openingHoursModeScope of the opening hours to be provided. If the parameter is set to nil, no opening hours are returned in the response. By default, requests opening hours for the next seven (7) days. If a chosen mode contains an associated start date, it is ignored by the backend.brandsA set of brands used to restrict the result to POIs associated with those brands. minPowerThe minimal power that a charging station can provide. maxPowerThe maximal power that a charging station can provide. fuelTypesA set of fuel types that a gas station can provide. connectorsA set of connector types that a charging station supports. See https://developer.tomtom.com/search-api/search-api-documentation/supported-connector-types for more details. sessionIDA search session is a user session during which a user performs multiple search requests to find a specific address or point of interest. This is needed for sending feedback to the online search. 
- 
                  
                  Default values used in the See moreSearchOptions.DeclarationSwift public enum Defaults
- 
                  
                  The search query. DeclarationSwift public var query: String
- 
                  
                  The position where results should be biased. DeclarationSwift public var geoBias: CLLocationCoordinate2D?
- 
                  
                  The maximum number of search results that will be returned. Defaults to 10. DeclarationSwift public var limit: Int
- 
                  
                  The geographic filter for search, all search results returned are confined in the specified geographies. CircleGeometryandRectangleGeometysupportgeoBias.CircleGeometrycenter is also used asgeoBias.PolygonGeometryignoresgeoBias.Important Only first geometry will be used. Full support will come in coming releases.DeclarationSwift public var searchAreas: Set<Geometry>
- 
                  
                  A list of coordinates forming the route, along which the search is to be done. A route can be fetched from a RoutePlanner.DeclarationSwift public let route: [CLLocationCoordinate2D]
- 
                  
                  The time added to the estimated time of arrival at the destination because of the change of route. Note The maximum value is defined inDefaults.maxDetourTime.DeclarationSwift public let maxDetourDuration: Measurement<UnitDuration>?
- 
                  
                  Defines how the results will be sorted. Only searching along a route makes use of this option. DeclarationSwift public let sortOrder: SortOrder
- 
                  
                  The language in which search results should be returned. DeclarationSwift public var locale: Locale
- 
                  
                  Restricts the Points Of Interest in the response to those whose category ID is listed. DeclarationSwift public var categoryIDs: Set<POICategoryID>
- 
                  
                  Scope of the opening hours to be provided. If the parameter is set to nil, no opening hours are returned in the response. By default, requests opening hours for the next seven (7) days.Note if a chosen mode contains an associated start date, it is ignored by the backend.DeclarationSwift public var openingHoursMode: OpeningHoursMode?
- 
                  
                  A set of ISO 3166-1 alpha3 country codes. (e.g., FRA, ESP, USA). This will limit the search to the specified countries. DeclarationSwift public var countryCodes: Set<String>
- 
                  
                  A set of brands used to restrict the result to POIs associated with those brands. DeclarationSwift public var brands: Set<Brand>
- 
                  
                  The minimal power that a charging station can provide. DeclarationSwift public var minPower: Measurement<UnitPower>?
- 
                  
                  The maximal power that a charging station can provide. DeclarationSwift public var maxPower: Measurement<UnitPower>?
- 
                  
                  A set of fuel types that a gas station can provide. DeclarationSwift public var fuelTypes: Set<FuelType>
- 
                  
                  A list of SearchResultTypeto filter results.DeclarationSwift public var resultTypes: Set<SearchResultType>
- 
                  
                  A list of connector types that a charging station supports. See https://developer.tomtom.com/search-api/search-api-documentation/supported-connector-types for more details. DeclarationSwift public var connectors: Set<ConnectorType>
- 
                  
                  A search session is a user session during which a user performs multiple search requests to find a specific address or point of interest. This is needed for sending feedback to the online search. DeclarationSwift public var sessionID: UUID?
 
         TomTom SDK for iOS (0.53.1)
 
          TomTom SDK for iOS (0.53.1)
         SearchOptions
          SearchOptions