Default directs to km

2 posts / 0 new
Last post
alanfuller
Default directs to km

I can see there is an optionControl where you can switch distance units to km.

I have serched the API and madesobut can't find ame random guesses too, butcan't find a way to set the distance units to km, is there a way?


MQBrianCoakley
You can add any of the other
You can add any of the other directions api options to the options object in the directions request. For example, add unit:'k' to the options in the Avoid Toll Roads example.