SnapToRoadsRequest
¶
Source code in docs_src/capo_geo_routes/types/snap_to_roads_request.py
key
instance-attribute
¶
key: NotRequired[ApiKey]
Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
snap_radius
instance-attribute
¶
snap_radius: DistanceMeters
The radius around the provided tracepoint that is considered for snapping.
Unit: meters
Default value: 300
snapped_geometry_format
instance-attribute
¶
snapped_geometry_format: NotRequired[GeometryFormat]
Chooses what the returned SnappedGeometry format should be.
Default value: FlexiblePolyline
trace_points
instance-attribute
¶
trace_points: RoadSnapTracePointList
List of trace points to be snapped onto the road network.
travel_mode
instance-attribute
¶
travel_mode: NotRequired[RoadSnapTravelMode]
Specifies the mode of transport when calculating a route. Used in estimating the speed of travel and road compatibility.
Default value: Car
travel_mode_options
instance-attribute
¶
travel_mode_options: NotRequired[RoadSnapTravelModeOptions]
Travel mode related options for the provided travel mode.