Module Values.RouteMatrixEntrySource

The calculated route matrix containing the results for all pairs of Origins to Destination positions. Each row corresponds to one entry in Origins. Each entry in the row corresponds to the route from that entry in Origins to an entry in Destination positions.

Sourcetype nonrec t = {
  1. distance : DistanceMeters.t option;
    (*

    The total distance of travel for the route.

    *)
  2. duration : DurationSeconds.t option;
    (*

    The expected duration of travel for the route. Unit: seconds

    *)
  3. error : RouteMatrixErrorCode.t option;
    (*

    Error code that occurred during calculation of the route.

    *)
}
Sourceval make : ?distance:??? -> ?duration:??? -> ?error:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `Long of DistanceMeters.t ]) 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