I am a novice android developer, creating an application based on the OSMNavigator principle from the OSMBonusPack (OSMDROID) package.
Building routes does not cause problems, I move along the route, but at the same time the Polyline remains the original length.
Please tell me how best to redraw the route line, about time, or for example every 100 meters, so that it is not very resource-intensive for the application and the route building service via OSRMRoadManager.
In both cases, it seems to me that it turns out to be cumbersome and resource-intensive. And yet, I understand that it is impossible to compare the current coordinates and the coordinates of the polyline, most likely you need to use some kind of radius by coordinates, from my current location?