Module Values.GeocodeResultItemSource

The Geocoded result.

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

    The PlaceId of the place result.

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

    A PlaceType is a category that the result place must belong to.

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

    The localized display name of this result item based on request parameter language.

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

    The place's address.

    *)
  5. addressNumberCorrected : SensitiveBoolean.t option;
    (*

    Boolean indicating if the address provided has been corrected.

    *)
  6. postalCodeDetails : PostalCodeDetailsList.t option;
    (*

    Contains details about the postal code of the place/result.

    *)
  7. position : Position.t option;
    (*

    The position in World Geodetic System (WGS 84) format: [longitude, latitude].

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

    The distance in meters from the QueryPosition.

    *)
  9. mapView : BoundingBox.t option;
    (*

    The bounding box enclosing the geometric shape (area or line) that an individual result covers. The bounding box formed is defined as a set 4 coordinates: [{westward lng}, {southern lat}, {eastward lng}, {northern lat}]

    *)
  10. categories : CategoryList.t option;
    (*

    Categories of results that results must belong to.

    *)
  11. foodTypes : FoodTypeList.t option;
    (*

    List of food types offered by this result.

    *)
  12. accessPoints : AccessPointList.t option;
    (*

    Position of the access point in World Geodetic System (WGS 84) format: [longitude, latitude].

    *)
  13. timeZone : TimeZone.t option;
    (*

    The time zone in which the place is located.

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

    *)
  15. matchScores : MatchScoreDetails.t option;
    (*

    Indicates how well the entire input matches the returned. It is equal to 1 if all input tokens are recognized and matched.

    *)
  16. parsedQuery : GeocodeParsedQuery.t option;
    (*

    Free-form text query.

    *)
  17. intersections : IntersectionList.t option;
    (*

    All Intersections that are near the provided address.

    *)
  18. mainAddress : RelatedPlace.t option;
    (*

    The main address corresponding to a place of type Secondary Address.

    *)
  19. secondaryAddresses : RelatedPlaceList.t option;
    (*

    All secondary addresses that are associated with a main address. A secondary address is one that includes secondary designators, such as a Suite or Unit Number, Building, or Floor information. Coverage for this functionality is available in the following countries: AUS, CAN, NZL, USA, PRI.

    *)
}
Sourceval make : ?placeId:??? -> ?placeType:??? -> ?title:??? -> ?address:??? -> ?addressNumberCorrected:??? -> ?postalCodeDetails:??? -> ?position:??? -> ?distance:??? -> ?mapView:??? -> ?categories:??? -> ?foodTypes:??? -> ?accessPoints:??? -> ?timeZone:??? -> ?politicalView:??? -> ?matchScores:??? -> ?parsedQuery:??? -> ?intersections:??? -> ?mainAddress:??? -> ?secondaryAddresses:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of SensitiveBoolean.t | `Enum of string | `List of [> `Double of Double.t | `Structure of (string * [> `Boolean of SensitiveBoolean.t | `Enum of string | `List of [> `Double of Double.t | `Structure of (string * [> `List of [> `Double of Double.t ] list ]) list ] list | `Long of DistanceMeters.t | `String of PostalCodeDetailsPostalCodeString.t | `Structure of (string * [> `Enum of string | `List of [> `String of IntersectionStreet.t | `Structure of (string * [> `Enum of string | `String of StreetComponentsBaseNameString.t ]) list ] list | `String of AddressLabelString.t | `Structure of (string * [> `String of CountryCode2.t ]) list ]) list ]) list ] list | `Long of DistanceMeters.t | `String of GeocodeResultItemPlaceIdString.t | `Structure of (string * [> `Double of MatchScore.t | `Enum of string | `List of [> `Double of Double.t | `String of IntersectionStreet.t | `Structure of (string * [> `Enum of string | `Integer of ParsedQueryComponentStartIndexInteger.t | `List of [> `Double of Double.t ] list | `String of StreetComponentsBaseNameString.t ]) list ] list | `Long of TimeZoneOffsetSecondsLong.t | `String of AddressLabelString.t | `Structure of (string * [> `Double of MatchScore.t | `List of [> `String of IntersectionStreet.t | `Structure of (string * [> `Enum of string | `Integer of ParsedQueryComponentStartIndexInteger.t | `String of ParsedQueryComponentValueString.t ]) list ] list | `String of CountryCode2.t | `Structure of (string * [> `Double of MatchScore.t | `List of [> `Double of MatchScore.t | `Structure of (string * [> `Double of MatchScore.t ]) list ] list | `String of CountryCode2.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