Module Values.AutocompleteResponseSource

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. pricingBucket : String_.t option;
    (*

    The pricing bucket for which the query is charged at. For more information on pricing, please visit Amazon Location Service Pricing.

    *)
  2. resultItems : AutocompleteResultItemList.t option;
    (*

    List of places or results returned for a query.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `ThrottlingException of ThrottlingException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?pricingBucket:??? -> ?resultItems:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `Long of DistanceMeters.t | `String of AutocompleteResultItemPlaceIdString.t | `Structure of (string * [> `List of [> `String of IntersectionStreet.t | `Structure of (string * [> `Enum of string | `Integer of HighlightStartIndexInteger.t | `String of StreetComponentsBaseNameString.t ]) list ] list | `String of AddressLabelString.t | `Structure of (string * [> `List of [> `List of [> `Structure of (string * [> `Integer of HighlightStartIndexInteger.t | `String of HighlightValueString.t ]) list ] list | `Structure of (string * [> `Integer of HighlightStartIndexInteger.t | `String of HighlightValueString.t ]) list ] list | `String of CountryCode2.t | `Structure of (string * [> `List of [> `Structure of (string * [> `Integer of HighlightStartIndexInteger.t | `String of HighlightValueString.t ]) list ] list ]) list ]) list ]) list ]) list ] list | `String of String_.t ]) 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