Module Values.SearchTextResponseSource

SearchText searches for geocode and place information. You can then complete a follow-up query suggested from the Suggest API via a query id. For more information, see Search Text 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 : SearchTextResultItemList.t option;
    (*

    List of places or results returned for a query.

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

    *)
}
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:??? -> ?nextToken:??? -> 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 * [> `Boolean of SensitiveBoolean.t | `Enum of string | `List of [> `Double of Double.t | `Structure of (string * [> `Boolean of SensitiveBoolean.t | `List of [> `Double of Double.t | `String of OpeningHoursDisplay.t | `Structure of (string * [> `Boolean of SensitiveBoolean.t | `String of OpeningHoursComponentsOpenTimeString.t ]) list ] list | `String of CategoryIdString.t ]) list ] list | `Long of DistanceMeters.t | `String of SearchTextResultItemPlaceIdString.t | `Structure of (string * [> `List of [> `String of IntersectionStreet.t | `Structure of (string * [> `Boolean of SensitiveBoolean.t | `Enum of string | `List of [> `Structure of (string * [> `Boolean of SensitiveBoolean.t | `String of CategoryIdString.t ]) list ] list | `String of StreetComponentsBaseNameString.t ]) list ] list | `Long of TimeZoneOffsetSecondsLong.t | `String of AddressLabelString.t | `Structure of (string * [> `List of [> `Structure of (string * [> `Boolean of SensitiveBoolean.t | `String of PhonemeTranscriptionValueString.t ]) list ] list | `String of CountryCode2.t ]) 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