Values.SnapToRoadsRequestSourceSnapToRoads matches GPS trace to roads most likely traveled on. For more information, see Snap to Roads in the Amazon Location Service Developer Guide.
type nonrec t = {key : ApiKey.t option;Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
*)snappedGeometryFormat : GeometryFormat.t option;Chooses what the returned SnappedGeometry format should be. Default value: FlexiblePolyline
*)snapRadius : SnapToRoadsRequestSnapRadiusLong.t option;The radius around the provided tracepoint that is considered for snapping. Unit: meters Default value: 300
*)tracePoints : SnapToRoadsRequestTracePointsList.t;List of trace points to be snapped onto the road network.
*)travelMode : RoadSnapTravelMode.t option;Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility. Default value: Car
*)travelModeOptions : RoadSnapTravelModeOptions.t option;Travel mode related options for the provided travel mode.
*)}val make :
?key:??? ->
?snappedGeometryFormat:??? ->
?snapRadius:??? ->
?travelMode:??? ->
?travelModeOptions:??? ->
tracePoints:SnapToRoadsRequestTracePointsList.t ->
unit ->
tval to_value :
t ->
[> `Structure of
(string
* [> `Enum of string
| `List of
[> `Structure of
(string
* [> `Double of Heading.t
| `List of [> `Double of Double.t ] list
| `String of TimestampWithTimezoneOffset.t ])
list ]
list
| `Long of SnapToRoadsRequestSnapRadiusLong.t
| `String of ApiKey.t
| `Structure of
(string
* [> `Structure of
(string
* [> `List of [> `Enum of string ] list
| `Long of WeightKilograms.t
| `String of TunnelRestrictionCode.t
| `Structure of
(string
* [> `Integer of
RoadSnapTrailerOptionsTrailerCountInteger.t ])
list ])
list ])
list ])
list ]