Module Values.GeocodeParsedQueryAddressComponentsSource

Parsed address components in the provided QueryText.

Sourcetype nonrec t = {
  1. country : ParsedQueryComponentList.t option;
    (*

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

    *)
  2. region : ParsedQueryComponentList.t option;
    (*

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

    *)
  3. subRegion : ParsedQueryComponentList.t option;
    (*

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

    *)
  4. locality : ParsedQueryComponentList.t option;
    (*

    The city or locality of the address. Example: Vancouver.

    *)
  5. district : ParsedQueryComponentList.t option;
    (*

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

    *)
  6. subDistrict : ParsedQueryComponentList.t option;
    (*

    A subdivision of a district. Example: Minden-Lübbecke.

    *)
  7. postalCode : ParsedQueryComponentList.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.

    *)
  8. block : ParsedQueryComponentList.t option;
    (*

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

    *)
  9. subBlock : ParsedQueryComponentList.t option;
    (*

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

    *)
  10. street : ParsedQueryComponentList.t option;
    (*

    The name of the street results should be present in.

    *)
  11. addressNumber : ParsedQueryComponentList.t option;
    (*

    The number that identifies an address within a street.

    *)
  12. building : ParsedQueryComponentList.t option;
    (*

    The name of the building at the address.

    *)
  13. secondaryAddressComponents : ParsedQuerySecondaryAddressComponentList.t option;
    (*

    Parsed secondary address components from the provided query text. Coverage for ParsedQuery.Address.SecondaryAddressComponents is available in the following countries: AUS, AUT, BRA, CAN, ESP, FRA, GBR, HKG, IDN, IND, NZL, TUR, TWN, USA

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