-
Limit results to one or more countries. Permitted values are ISO 3166 alpha 2 country codes (e.g. US, DE, GB)
Declaration
Swift
public var countries: [String]? -
List of language codes which used to provide localized results, order matters.
Locale.preferredLanguagesused as default or["en"]if none. Specify the user’s language. This parameter controls the language of the text supplied in responses, and also affects result scoring, with results matching the user’s query in the requested language being preferred over results that match in another language. For example, an autocomplete query for things that start with Frank might return Frankfurt as the first result with an English (en) language parameter, but Frankreich (“France”) with a German (de) language parameter.Note
Geocoding API supports a few languages, SBS – only oneDeclaration
Swift
public var languages: [String] -
Specify the maximum number of results to return.
Geocoding API supports 10 results as a maximum. The Single-Box Search (aka SBS) have very high limits.
Declaration
Swift
public var limit: Int? -
Use non-strict (
true) or strict (false) matchingSpecify whether the Geocoding API should attempt approximate, as well as exact, matching when performing searches (true, default), or whether it should opt out of this behavior and only attempt exact matching (false). For example, the default setting might return Washington, DC for a query of wahsington, even though the query was misspelled
Note
Geocoding API onlyDeclaration
Swift
public var fuzzyMatch: Bool? -
Coordinate to search around
Declaration
Swift
public var proximity: CLLocationCoordinate2D? -
Limit results to only those contained within the supplied bounding box. The bounding box cannot cross the 180th meridian.
Declaration
Swift
public var boundingBox: BoundingBox? -
In case
boundingBoxwas applied, places search will look through all available tiles, ignoring the bounding box. Other search types (Address, POI, Category) will no be affected by this setting. In caseboundingBoxwas not applied - this param will not be used.Declaration
Swift
public var offlineSearchPlacesOutsideBbox: Bool -
Search origin point. This point is used for calculation of SearchResult ETA and distance fields. Set appropriate navigationProfile for better calculation of ETA. If no origin location specified, distance will be calculated based on proximity point.
Note
Single-Box Search API onlyDeclaration
Swift
public var origin: CLLocationCoordinate2D? -
Navigation options used for proper calculation of ETA and results ranking
Note
Single-Box Search API onlyDeclaration
Swift
public var navigationOptions: SearchNavigationOptions? -
Options to filter search results along the route
Note
Single-Box Search API onlyDeclaration
Swift
public var routeOptions: RouteOptions? -
Filter results to include only a subset (one or more) of the available types.
Declaration
Swift
public var filterTypes: [SearchQueryType]? -
Do not search external records in
IndexableDataProviders. Defaults tofalseAttention
History and Favorites functionality is implemented asIndexableDataProvidersDeclaration
Swift
public var ignoreIndexableRecords: Bool -
Non-verified query parameters to the server API
Attention
May break engine entity functionality. Do not use without SDK developers agreementDeclaration
Swift
public var unsafeParameters: [String : String]? -
The locale in which results should be returned.
This property affects the language of returned results; generally speaking, it does not determine which results are found. Components other than the language code, such as the country and script codes, are ignored.
If
localeoption is set,languagesoption will be ignored.By default, this property is set to
nil, causing results to be in the default language.Declaration
Swift
public var locale: Locale? -
Configures additional metadata attributes besides the basic ones. This property is used only in category search. Supported in
searchBoxonly.Declaration
Swift
public var attributeSets: [AttributeSet]? -
init(countries:languages:limit:fuzzyMatch:proximity:boundingBox:offlineSearchPlacesOutsideBbox:origin:navigationOptions:routeOptions:filterTypes:ignoreIndexableRecords:indexableRecordsDistanceThreshold:unsafeParameters:attributeSets:ensureResultsPerCategory:)Search request options constructor
Declaration
Swift
public init( countries: [String]? = nil, languages: [String]? = nil, limit: Int? = nil, fuzzyMatch: Bool? = nil, proximity: CLLocationCoordinate2D? = nil, boundingBox: BoundingBox? = nil, offlineSearchPlacesOutsideBbox: Bool = false, origin: CLLocationCoordinate2D? = nil, navigationOptions: SearchNavigationOptions? = nil, routeOptions: RouteOptions? = nil, filterTypes: [SearchQueryType]? = nil, ignoreIndexableRecords: Bool = false, indexableRecordsDistanceThreshold: CLLocationDistance? = nil, unsafeParameters: [String: String]? = nil, attributeSets: [AttributeSet]? = nil, ensureResultsPerCategory: Bool? = nil )Parameters
countriesLimit results to one or more countries. Permitted values are ISO 3166 alpha 2 country codes (e.g. US, DE, GB)
languagesList of language codes which used to provide localized results, order matters. Locale.preferredLanguages used as default or [“en”] if none.
limitSpecify the maximum number of results to return
fuzzyMatchUse non-strict (
true) or strict (false) matchingproximityCoordinate to search around
boundingBoxLimit search result to a region
offlineSearchPlacesOutsideBboxConfigures if places can be looked through all available files ignoring the bounding box
originSearch origin point. This point is used for calculation of SearchResult ETA and distance fields
navigationOptionsNavigation options used for proper calculation of ETA and results ranking
routeOptionsOptions to filter search results along the route
filterTypesFilter results by types.
CategorySearchEnginedoesn’t support that option.ignoreIndexableRecordsDo not search external records in
IndexableDataProvidersindexableRecordsDistanceThresholdRadius of circle around
proximityto filter indexable recordsunsafeParametersNon-verified query parameters to the server API
attributeSetsConfigures additional metadata attributes besides the basic ones. If
attributeSetsisnilor empty,basicwill be requested.ensureResultsPerCategoryConfigures if results will include at least one POI for each category, provided a POI is available in a nearby location.
-
Search request options with custom proximity.
Declaration
Swift
public init(proximity: CLLocationCoordinate2D, origin: CLLocationCoordinate2D? = nil, limit: Int? = nil)Parameters
proximityCoordinate to search around
originSearch origin point. This point is used for calculation of SearchResult ETA and distance fields. If no origin location specified, distance will be calculated based on proximity point.
limitSpecify the maximum number of results to return
-
Search request options with custom bounding box.
Declaration
Swift
public init(boundingBox: BoundingBox, origin: CLLocationCoordinate2D? = nil, limit: Int? = nil)Parameters
boundingBoxLimit search result to a region
originSearch origin point. This point is used for calculation of SearchResult ETA and distance fields. If no origin location specified, distance will be calculated based on proximity point.
limitSpecify the maximum number of results to return
-
Search request options with navigation options and origin.
Declaration
Swift
public init(navigationOptions: SearchNavigationOptions, origin: CLLocationCoordinate2D? = nil)Parameters
navigationOptionsNavigation options used for proper calculation of ETA and results ranking
originSearch origin point. This point is used for calculation of SearchResult ETA and distance fields. If no origin location specified, distance will be calculated based on proximity point.
-
Search request options with route options for Search Along the Route
Declaration
Swift
public init(routeOptions: RouteOptions)Parameters
routeOptionsOptions to filter search results along the route
-
Delay before actual search request would be sent to the server That helps to reduce pressure on the server
Declaration
Swift
public var defaultDebounce: TimeInterval -
When set to true and multiple categories are requested, e.g.
CategorySearchEngine.search(categoryNames: ["coffee_shop", "hotel"], ...), results will include at least one POI for each category, provided a POI is available in a nearby location.A comma-separated list of multiple category values in the request determines the sort order of the POI result. For example, for request
CategorySearchEngine.search(categoryNames: ["coffee_shop", "hotel"], ...),coffee_shopPOI will be listed first in the results.If there is more than one POI for categories, the number of search results will include multiple features for each category.
For example, assuming that
restaurant,coffee,parking_lotcategories are requested and limit parameter is 10, the result will be ranked as follows:- 1st to 4th:
restaurantPOIs - 5th to 7th:
coffeePOIs - 8th to 10th:
parking_lotPOI
Note
searchBoxonly.Declaration
Swift
public var ensureResultsPerCategory: Bool? - 1st to 4th:
SearchOptions Structure Reference