I found another question.
Currently I am adding a route like below.
RouteBuilder routeBuilder = new RouteBuilder(model.getCoordinates()) .style(routeStyle);
Routes route = tomtomMap.addRoute(routeBuilder);
And I am trying to update the route when more coordinates are added in the model object.
In order to do that, I am trying to find a way to remove the specific route from the map, and add a new route with the updated coordinates.
But when I look at the methods in the class, I only see a way to clear all routes, not just removing a single route. Because I want to keep some other routes, this method won’t work for me.
What would be a good way to achieve this?