Module Values.AutocompleteResultItemSource

A result matching the input query text.

Sourcetype nonrec t = {
  1. placeId : AutocompleteResultItemPlaceIdString.t option;
    (*

    The PlaceId of the place associated with this result. This can be used to look up additional details about the result via GetPlace.

    *)
  2. placeType : PlaceType.t option;
    (*

    PlaceType describes the type of result entry returned.

    *)
  3. title : AutocompleteResultItemTitleString.t option;
    (*

    A formatted string for display when presenting this result to an end user.

    *)
  4. address : Address.t option;
    (*

    The address associated with this result.

    *)
  5. distance : DistanceMeters.t option;
    (*

    The distance in meters between the center of the search area and this result. Useful to evaluate how far away from the original bias position the result is.

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

    *)
  7. politicalView : CountryCode3.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.

    *)
  8. highlights : AutocompleteHighlights.t option;
    (*

    Indicates the starting and ending index of the place in the text query that match the found title.

    *)
}
Sourceval make : ?placeId:??? -> ?placeType:??? -> ?title:??? -> ?address:??? -> ?distance:??? -> ?language:??? -> ?politicalView:??? -> ?highlights:??? -> unit -> t
Sourceval to_value : t -> [> `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 ]
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