Values.GeocodeResultItemSourceThe Geocoded result.
type nonrec t = {placeId : GeocodeResultItemPlaceIdString.t option;The PlaceId of the place result.
*)placeType : PlaceType.t option;A PlaceType is a category that the result place must belong to.
*)title : GeocodeResultItemTitleString.t option;The localized display name of this result item based on request parameter language.
*)address : Address.t option;The place's address.
*)addressNumberCorrected : SensitiveBoolean.t option;Boolean indicating if the address provided has been corrected.
*)postalCodeDetails : PostalCodeDetailsList.t option;Contains details about the postal code of the place/result.
*)position : Position.t option;The position in World Geodetic System (WGS 84) format: [longitude, latitude].
*)distance : DistanceMeters.t option;The distance in meters from the QueryPosition.
*)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}]
*)categories : CategoryList.t option;Categories of results that results must belong to.
*)foodTypes : FoodTypeList.t option;List of food types offered by this result.
*)accessPoints : AccessPointList.t option;Position of the access point in World Geodetic System (WGS 84) format: [longitude, latitude].
*)timeZone : TimeZone.t option;The time zone in which the place is located.
*)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.
*)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.
*)parsedQuery : GeocodeParsedQuery.t option;Free-form text query.
*)intersections : IntersectionList.t option;All Intersections that are near the provided address.
*)mainAddress : RelatedPlace.t option;The main address corresponding to a place of type Secondary Address.
*)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.
*)}val make :
?placeId:GeocodeResultItemPlaceIdString.t ->
?placeType:PlaceType.t ->
?title:GeocodeResultItemTitleString.t ->
?address:Address.t ->
?addressNumberCorrected:SensitiveBoolean.t ->
?postalCodeDetails:PostalCodeDetailsList.t ->
?position:Position.t ->
?distance:DistanceMeters.t ->
?mapView:BoundingBox.t ->
?categories:CategoryList.t ->
?foodTypes:FoodTypeList.t ->
?accessPoints:AccessPointList.t ->
?timeZone:TimeZone.t ->
?politicalView:CountryCode3.t ->
?matchScores:MatchScoreDetails.t ->
?parsedQuery:GeocodeParsedQuery.t ->
?intersections:IntersectionList.t ->
?mainAddress:RelatedPlace.t ->
?secondaryAddresses:RelatedPlaceList.t ->
unit ->
tval 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 ]