AzureMapsCodeSamples icon indicating copy to clipboard operation
AzureMapsCodeSamples copied to clipboard

"Route to a destination" sample uses deprecated API version

Open jk-pa opened this issue 7 months ago • 0 comments

This sample uses a api-version=1.0 parameter in its request to get a route between two points.

https://github.com/Azure-Samples/AzureMapsCodeSamples/blob/main/Samples/Tutorials/Route/Route%20to%20a%20destination.html

This version is deprecated and going to be retired. The get route API call in the new version is changing from GET to POST.

https://learn.microsoft.com/en-us/rest/api/maps/route/get-route-directions?view=rest-maps-1.0&tabs=HTTP

The sample needs to be updated to use the new API version and methodology.

jk-pa avatar Jun 02 '25 16:06 jk-pa