We rolled out a new and better SDK for you.
Allow your users to plan a route that avoids toll roads, motorways, ferries, unpaved roads, carpool lanes, roads that they have already taken, vignettes, or even whole areas.
Sample use case: You plan a trip between the TomTom offices in Amsterdam and Oslo. You would like to check how much time you gain by taking a ferry and how much more time it will take to drive if you don’t use motorways so you can choose the best route.
Available routes to avoid:
1routeAvoid = Avoid.TOLL_ROADS2routeAvoid = Avoid.MOTORWAYS3routeAvoid = Avoid.FERRIES4routeAvoid = Avoid.UNPAVED_ROADS5routeAvoid = Avoid.CAR_POOLS6routeAvoid = Avoid.ALREADY_USED_ROADS
To request a route for a specified route avoid:
Route avoid ferries
Route avoid motorways
Route avoid toll roads
Sample use case: You plan a trip from A to B and you know that on your way there are vignettes. Additionally, there is an area which has very high traffic. You want to avoid both vignettes and the specified area.
To avoid vignettes:
To avoid an area:
Route without avoiding anything
Route avoiding a specified area
Route avoiding vignettes