SuggestRequest
¶
Source code in docs_src/capo_geo_places/types/suggest_request.py
additional_features
instance-attribute
¶
additional_features: NotRequired[SuggestAdditionalFeatureList]
A list of optional additional parameters, such as time zone, that can be requested for each result. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only the Core and TimeZone values.
bias_position
instance-attribute
¶
bias_position: NotRequired[Position]
The position, in longitude and latitude, that the results should be close to. Typically, place results returned are ranked higher the closer they are to this position. Stored in [lng, lat] and in the WGS 84 format.
The fields BiasPosition, FilterBoundingBox, and FilterCircle are mutually exclusive.
filter
instance-attribute
¶
filter: NotRequired[SuggestFilter]
A structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.
intended_use
instance-attribute
¶
intended_use: NotRequired[SuggestIntendedUse]
Indicates if the query results will be persisted in customer infrastructure. Defaults to SingleUse (not stored). Currently, Suggest does not support storage of results.
key
instance-attribute
¶
key: NotRequired[ApiKey]
Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
language
instance-attribute
¶
language: NotRequired[LanguageTag]
A list of BCP 47 compliant language codes for the results to be rendered in. If there is no data for the result in the requested language, data will be returned in the default language for the entry. For GrabMaps customers, ap-southeast-1 and ap-southeast-5 regions support only the following codes: en, id, km, lo, ms, my, pt, th, tl, vi, zh
max_query_refinements
instance-attribute
¶
max_query_refinements: NotRequired[int]
Maximum number of query terms to be returned for use with a search text query. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
max_results
instance-attribute
¶
max_results: NotRequired[int]
An optional limit for the number of results returned in a single call.
Default value: 20
political_view
instance-attribute
¶
political_view: NotRequired[CountryCode]
The alpha-2 or alpha-3 character code for the political view of a country. The political view applies to the results of the request to represent unresolved territorial claims through the point of view of the specified country. Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers.
query_text
instance-attribute
¶
query_text: SensitiveString
The free-form text query to match addresses against. This is usually a partially typed address from an end user in an address box or form.
The fields QueryText and QueryID are mutually exclusive.
travel_mode
instance-attribute
¶
travel_mode: NotRequired[SuggestTravelMode]
Indicates the mode of mobility used by the end user. This is used to improve the relevance of search results. Valid values are Car, Scooter, and Truck.