Azure Maps Route API - How to set DrivingSide a Left or Right

Mathew James 336 Reputation points

I am using Azure maps Route API - sample indicated below{subscriptionKey}&query...

The question is it looks like, the route information returned is always based on LEFT HAND Driving.

How to set this to return for Right hand Driving. I can see some property called drivingSide, but please guide me on how to set this in the API as a Query parameter so that I get the response route for Right hand driving.

One more question - If we set the country code say India, will it automatically take Driving Side as as Right hand side and calculate routes based on this ? If so, how to set the Country code while calling route API ?

Appreciate your response.


Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
606 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 15,546 Reputation points Microsoft Employee

    The DrivingSide property in the route service generally is the side of the road you would typically drive on (e.g. right side in the USA, left side in the UK) and not the side of the road you are on when starting your route. The vehicleHeading is an option of the request that you can pass in the direction the vehicle is pointing in degrees. This will then snap to the appropriate side of the road.