Module Values.SearchTextResultItemSource

The text search result.

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

    The PlaceId of the place you wish to receive the information for.

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

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

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

    The item's title.

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

    The place's address.

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

    Boolean indicating if the address provided has been corrected.

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

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

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

    The distance in meters from the QueryPosition.

    *)
  8. 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}]

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

    Categories of results that results must belong to.

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

    List of food types offered by this result.

    *)
  11. businessChains : BusinessChainList.t option;
    (*

    The Business Chains associated with the place.

    *)
  12. contacts : Contacts.t option;
    (*

    List of potential contact methods for the result/place.

    *)
  13. openingHours : OpeningHoursList.t option;
    (*

    List of opening hours objects.

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

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

    *)
  15. accessRestrictions : AccessRestrictionList.t option;
    (*

    Indicates known access restrictions on a vehicle access point. The index correlates to an access point and indicates if access through this point has some form of restriction.

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

    The time zone in which the place is located.

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

    *)
  18. phonemes : PhonemeDetails.t option;
    (*

    How the various components of the result's address are pronounced in various languages.

    *)
}
Sourceval make : ?placeId:??? -> ?placeType:??? -> ?title:??? -> ?address:??? -> ?addressNumberCorrected:??? -> ?position:??? -> ?distance:??? -> ?mapView:??? -> ?categories:??? -> ?foodTypes:??? -> ?businessChains:??? -> ?contacts:??? -> ?openingHours:??? -> ?accessPoints:??? -> ?accessRestrictions:??? -> ?timeZone:??? -> ?politicalView:??? -> ?phonemes:??? -> 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 | `List of [> `Double of Double.t | `String of OpeningHoursDisplay.t | `Structure of (string * [> `Boolean of SensitiveBoolean.t | `String of OpeningHoursComponentsOpenTimeString.t ]) list ] list | `String of CategoryIdString.t ]) list ] list | `Long of DistanceMeters.t | `String of SearchTextResultItemPlaceIdString.t | `Structure of (string * [> `List of [> `String of IntersectionStreet.t | `Structure of (string * [> `Boolean of SensitiveBoolean.t | `Enum of string | `List of [> `Structure of (string * [> `Boolean of SensitiveBoolean.t | `String of CategoryIdString.t ]) list ] list | `String of StreetComponentsBaseNameString.t ]) list ] list | `Long of TimeZoneOffsetSecondsLong.t | `String of AddressLabelString.t | `Structure of (string * [> `List of [> `Structure of (string * [> `Boolean of SensitiveBoolean.t | `String of PhonemeTranscriptionValueString.t ]) list ] list | `String of CountryCode2.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