snap_to_roads
async
¶
snap_to_roads(
trace_points: RoadSnapTracePointList,
*,
config_overrides: Optional[AsyncGeoRoutesClientConfig] = None,
key: Optional[ApiKey] = None,
snapped_geometry_format: Optional[GeometryFormat] = None,
snap_radius: Optional[DistanceMeters] = None,
travel_mode: Optional[RoadSnapTravelMode] = None,
travel_mode_options: Optional[RoadSnapTravelModeOptions] = None,
) -> SnapToRoadsResponse
SnapToRoads matches GPS trace to roads most likely traveled on.
For more information, see Snap to Roads in the Amazon Location Service Developer Guide.
Parameters:
-
key(Optional[ApiKey], default:None) –Optional: The API key to be used for authorization. Either an API key or valid SigV4 signature must be provided when making a request.
-
snapped_geometry_format(Optional[GeometryFormat], default:None) –Chooses what the returned SnappedGeometry format should be.
Default value:
FlexiblePolyline -
snap_radius(Optional[DistanceMeters], default:None) –The radius around the provided tracepoint that is considered for snapping.
Unit:
metersDefault value:
300 -
trace_points(RoadSnapTracePointList) –List of trace points to be snapped onto the road network.
-
travel_mode(Optional[RoadSnapTravelMode], default:None) –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(Optional[RoadSnapTravelModeOptions], default:None) –Travel mode related options for the provided travel mode.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
InternalServerException–The request processing has failed because of an unknown error, exception or failure.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an AWS service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_geo_routes/_services/async_geo_routes.py
887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 | |