Values.SearchNearbyRequestSourceSearchNearby queries for points of interest within a radius from a central coordinates, returning place results with optional filters such as categories, business chains, food types and more. The API returns details such as a place name, address, phone, category, food type, contact, opening hours. Also, the API can return phonemes, time zones and more based on requested parameters. For more information, see Search Nearby in the Amazon Location Service Developer Guide.
type nonrec t = {queryPosition : Position.t;The position in World Geodetic System (WGS 84) format: [longitude, latitude] for which you are querying nearby results for. Results closer to the position will be ranked higher then results further away from the position
*)queryRadius : SearchNearbyRequestQueryRadiusLong.t option;The maximum distance in meters from the QueryPosition from which a result will be returned. The fields QueryText, and QueryID are mutually exclusive.
*)maxResults : SearchNearbyRequestMaxResultsInteger.t option;An optional limit for the number of results returned in a single call. Default value: 20
*)filter : SearchNearbyFilter.t option;A structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.
*)additionalFeatures : SearchNearbyAdditionalFeatureList.t option;A list of optional additional parameters, such as time zone, that can be requested for each result.
*)language : LanguageTag.t option;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.
*)politicalView : CountryCode.t option;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.
*)intendedUse : SearchNearbyIntendedUse.t option;Indicates if the query results will be persisted in customer infrastructure. Defaults to SingleUse (not stored). Not supported in ap-southeast-1 and ap-southeast-5 regions for GrabMaps customers. When storing SearchNearby responses, you must set this field to Storage to comply with the terms of service. These requests will be charged at a higher rate. Please review the user agreement and service pricing structure to determine the correct setting for your use case.
*)nextToken : Token.t option;If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page.
*)key : ApiKey.t option;Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
*)}val make :
?queryRadius:??? ->
?maxResults:??? ->
?filter:??? ->
?additionalFeatures:??? ->
?language:??? ->
?politicalView:??? ->
?intendedUse:??? ->
?nextToken:??? ->
?key:??? ->
queryPosition:Position.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `Integer of SearchNearbyRequestMaxResultsInteger.t
| `List of [> `Double of Double.t | `Enum of string ] list
| `Long of SearchNearbyRequestQueryRadiusLong.t
| `String of LanguageTag.t
| `Structure of
(string
* [> `List of
[> `Double of Double.t | `String of CountryCode.t ] list ])
list ])
list ]