Module Values.AutocompleteRequestSource

Autocomplete completes potential places and addresses as the user types, based on the partial input. The API enhances the efficiency and accuracy of address by completing query based on a few entered keystrokes. It helps you by completing partial queries with valid address completion. Also, the API supports the filtering of results based on geographic location, country, or specific place types, and can be tailored using optional parameters like language and political views. For more information, see Autocomplete in the Amazon Location Service Developer Guide.

Sourcetype nonrec t = {
  1. queryText : AutocompleteRequestQueryTextString.t;
    (*

    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.

    *)
  2. maxResults : AutocompleteRequestMaxResultsInteger.t option;
    (*

    An optional limit for the number of results returned in a single call. Default value: 5

    *)
  3. biasPosition : Position.t option;
    (*

    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.

    *)
  4. filter : AutocompleteFilter.t option;
    (*

    A structure which contains a set of inclusion/exclusion properties that results must possess in order to be returned as a result.

    *)
  5. postalCodeMode : PostalCodeMode.t option;
    (*

    The PostalCodeMode affects how postal code results are returned. If a postal code spans multiple localities and this value is empty, partial district or locality information may be returned under a single postal code result entry. If it's populated with the value EnumerateSpannedLocalities, all cities in that postal code are returned.

    *)
  6. additionalFeatures : AutocompleteAdditionalFeatureList.t option;
    (*

    A list of optional additional parameters that can be requested for each result.

    *)
  7. 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.

    *)
  8. 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. The following political views are currently supported: ARG: Argentina's view on the Southern Patagonian Ice Field and Tierra Del Fuego, including the Falkland Islands, South Georgia, and South Sandwich Islands EGY: Egypt's view on Bir Tawil IND: India's view on Gilgit-Baltistan KEN: Kenya's view on the Ilemi Triangle MAR: Morocco's view on Western Sahara RUS: Russia's view on Crimea SDN: Sudan's view on the Halaib Triangle SRB: Serbia's view on Kosovo, Vukovar, and Sarengrad Islands SUR: Suriname's view on the Courantyne Headwaters and Lawa Headwaters SYR: Syria's view on the Golan Heights TUR: Turkey's view on Cyprus and Northern Cyprus TZA: Tanzania's view on Lake Malawi URY: Uruguay's view on Rincon de Artigas VNM: Vietnam's view on the Paracel Islands and Spratly Islands

    *)
  9. intendedUse : AutocompleteIntendedUse.t option;
    (*

    Indicates if the query results will be persisted in customer infrastructure. Defaults to SingleUse (not stored). Currently, Autocomplete does not support storage of results.

    *)
  10. 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.

    *)
}
Sourceval context_ : string
Sourceval make : ?maxResults:??? -> ?biasPosition:??? -> ?filter:??? -> ?postalCodeMode:??? -> ?additionalFeatures:??? -> ?language:??? -> ?politicalView:??? -> ?intendedUse:??? -> ?key:??? -> queryText:AutocompleteRequestQueryTextString.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Integer of AutocompleteRequestMaxResultsInteger.t | `List of [> `Double of Double.t | `Enum of string ] list | `String of AutocompleteRequestQueryTextString.t | `Structure of (string * [> `List of [> `Double of Double.t | `Enum of string | `String of CountryCode.t ] list | `Structure of (string * [> `List of [> `Double of Double.t ] list | `Long of FilterCircleRadiusLong.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t