Module Values.CalculateIsolinesResponseSource

Calculates areas that can be reached within specified time or distance thresholds from a given point. For example, you can use this operation to determine the area within a 30-minute drive of a store location, find neighborhoods within walking distance of a school, or identify delivery zones based on drive time. Isolines (also known as isochrones for time-based calculations) are useful for various applications including: Service area visualization - Show customers the area you can serve within promised delivery times Site selection - Analyze potential business locations based on population within travel distance Site selection - Determine areas that can be reached within specified response times Route preferences such as avoiding toll roads or ferries are treated as preferences rather than absolute restrictions. If a viable route cannot be calculated while honoring all preferences, some may be ignored. For more information, see Calculate isolines in the Amazon Location Service Developer Guide.

Sourcetype nonrec t = {
  1. arrivalTime : TimestampWithTimezoneOffset.t option;
    (*

    Time of arrival at the destination, used for traffic calculations. This attribute is returned only if the Destination and ArrivalTime attributes were provided in the request. Time format: YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm Examples: 2020-04-22T17:57:24Z 2020-04-22T17:57:24+02:00

    *)
  2. departureTime : TimestampWithTimezoneOffset.t option;
    (*

    Time of departure from the origin, used for traffic calculations. This attribute is returned when Origin was provided in the request and either a specific departure time was requested (DepartureTime) or DepartNow was set to true. Time format: YYYY-MM-DDThh:mm:ss.sssZ | YYYY-MM-DDThh:mm:ss.sss+hh:mm Examples: 2020-04-22T17:57:24Z 2020-04-22T17:57:24+02:00

    *)
  3. isolineGeometryFormat : GeometryFormat.t option;
    (*

    The format of the returned geometries, matching the format specified in the request. Either FlexiblePolyline for compact encoding or Simple for GeoJSON-compatible coordinates. Default value:FlexiblePolyline

    *)
  4. isolines : IsolineList.t option;
    (*

    Reachable areas, or isolines, for each threshold specified in the request.

    *)
  5. pricingBucket : String_.t option;
    (*

    The pricing bucket applied to this calculation. Different buckets apply based on the travel mode and thresholds used.

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

    The actual point on the road network used for calculations, which may differ from the requested destination if Destination was not directly on a road.

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

    The actual point on the road network used for calculations, which may differ from the requested origin if Origin was not directly on a road.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerException of InternalServerException.t
  3. | `ThrottlingException of ThrottlingException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?arrivalTime:??? -> ?departureTime:??? -> ?isolineGeometryFormat:??? -> ?isolines:??? -> ?pricingBucket:??? -> ?snappedDestination:??? -> ?snappedOrigin:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerException of InternalServerException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `List of [> `Double of Double.t | `Structure of (string * [> `List of [> `Structure of (string * [> `Integer of IsolineConnectionFromPolygonIndexInteger.t | `List of [> `List of [> `List of [> `Double of Double.t ] list ] list | `String of PolylineRing.t ] list | `Structure of (string * [> `List of [> `List of [> `Double of Double.t ] list ] list | `String of Polyline.t ]) list ]) list ] list | `Long of DistanceMeters.t ]) list ] list | `String of TimestampWithTimezoneOffset.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