setUnpavedRoadAvoided

open fun setUnpavedRoadAvoided(@NonNull() countryIso: String, avoid: Boolean)

Sets the flag indicates whether unpaved roads should be avoided when computing the route.

Parameters

countryIso

Iso code of country we want to apply restriction. Iso code is can be obtained via getTransitCountries

avoid

If to avoid or not to avoid unpaved roads

open fun setUnpavedRoadAvoided(avoid: Boolean)

Sets the flag indicates whether unpaved roads should be avoided when computing the route.

Parameters

avoid

If to avoid or not to avoid unpaved roads