v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-145615375.2 KB

SnapToRoads matches GPS trace to roads most likely traveled on.

For more information, see Snap to Roads in the Amazon Location Service Developer Guide.

post/v2/snap-to-roads

Query parameters

keystring password

Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.

Request body

SnappedGeometryFormat'FlexiblePolyline' | 'Simple'
<p>Chooses what the returned SnappedGeometry format should be.</p> <p>Default value: <code>FlexiblePolyline</code> </p>
SnapRadiusinteger
<p>The radius around the provided tracepoint that is considered for snapping.</p> <p> <b>Unit</b>: <code>meters</code> </p> <p>Default value: <code>300</code> </p>
TravelMode'Car' | 'Pedestrian' | 'Scooter' | 'Truck'
<p>Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.</p> <p>Default value: <code>Car</code> </p>

Response

Success

SnappedGeometryFormat'FlexiblePolyline' | 'Simple' required

Specifies the format of the geometry returned for each leg of the route.