Module Values.AutocompleteAddressHighlightsSource

Describes how the parts of the response element matched the input query by returning the sections of the response which matched to input query terms.

Sourcetype nonrec t = {
  1. label : HighlightList.t option;
    (*

    Indicates the starting and ending indexes for result items where they are identified to match the input query. This should be used to provide emphasis to output display to make selecting the correct result from a list easier for end users.

    *)
  2. country : CountryHighlights.t option;
    (*

    The alpha-2 or alpha-3 character code for the country that the results will be present in.

    *)
  3. region : RegionHighlights.t option;
    (*

    The region or state results should be to be present in. Example: North Rhine-Westphalia.

    *)
  4. subRegion : SubRegionHighlights.t option;
    (*

    The sub-region or county for which results should be present in.

    *)
  5. locality : HighlightList.t option;
    (*

    The city or locality results should be present in. Example: Vancouver.

    *)
  6. district : HighlightList.t option;
    (*

    The district or division of a city the results should be present in.

    *)
  7. subDistrict : HighlightList.t option;
    (*

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

    *)
  8. street : HighlightList.t option;
    (*

    The name of the street results should be present in.

    *)
  9. block : HighlightList.t option;
    (*

    Name of the block. Example: Sunny Mansion 203 block: 2 Chome

    *)
  10. subBlock : HighlightList.t option;
    (*

    Name of sub-block. Example: Sunny Mansion 203 sub-block: 4

    *)
  11. intersection : IntersectionHighlightsList.t option;
    (*

    Name of the streets in the intersection. For example: e.g. ["Friedrichstraße","Unter den Linden"]

    *)
  12. postalCode : HighlightList.t option;
    (*

    An alphanumeric string included in a postal address to facilitate mail sorting, such as post code, postcode, or ZIP code for which the result should possess.

    *)
  13. addressNumber : HighlightList.t option;
    (*

    The house number or address results should have.

    *)
  14. building : HighlightList.t option;
    (*

    The name of the building at the address.

    *)
}
Sourceval make : ?label:??? -> ?country:??? -> ?region:??? -> ?subRegion:??? -> ?locality:??? -> ?district:??? -> ?subDistrict:??? -> ?street:??? -> ?block:??? -> ?subBlock:??? -> ?intersection:??? -> ?postalCode:??? -> ?addressNumber:??? -> ?building:??? -> unit -> t
Sourceval to_value : 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 | `Structure of (string * [> `List of [> `Structure of (string * [> `Integer of HighlightStartIndexInteger.t | `String of HighlightValueString.t ]) 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