Realtime routing tomtom maps for android

Hey there
I have been using routing in tomtom maps but there is no option for live routing that is updating the location based on the current location of users. I tried repeatedly calling the function but what happens is that instead of having just one route there are many routes on the map.
I also tried map.clearRoute() but it removes all the routes and there is a bit delay in getting the response.
So the question is how should I go for realtime routing in tomtom maps.

Hi.

You should definitely check our “Time to leave” tutorial. It periodically checks for the traffic conditions on the route, shows how to draw it and much more! The source code is available on GitHub.

Regards,
Mateusz

1 Like