Different distance for identical polyline
Posted: Tue Oct 20, 2020 2:05 pm
Hello,
I've encountered a weird issue and I thought that it would be better to check with you. What we do is, before a drive, we calculate the route between points A -> B and we save the polyline and the total distance/time. After the drive has started, we recalculate the route every 10 minutes using A -> CarPosition -> B as waypoints and, if the difference to the initial route is bigger than a set threshold, we save the new route (polyline, distance and time). At this point, we do not overwrite the initial polyline, we just save the new one separately.
What happened: at some point, the calculated route had a 36 minute/37 km difference, which triggered the save. When we looked over the saved result, the polyline was identical, but the time and distance differed. The CarPosition point was 100% on the route indicated by the first route.
To summarize:
1) A -> B : 187 km, ~2.42h
2) A -> CarPosition -> B : 223 km, 2.9h
Car position point was on the route given by 1) and 2) has the same polyline as 1).
Also, this only happened a couple of times and does not reproduce anymore.
Are we missing something?
Thanks,
John
I've encountered a weird issue and I thought that it would be better to check with you. What we do is, before a drive, we calculate the route between points A -> B and we save the polyline and the total distance/time. After the drive has started, we recalculate the route every 10 minutes using A -> CarPosition -> B as waypoints and, if the difference to the initial route is bigger than a set threshold, we save the new route (polyline, distance and time). At this point, we do not overwrite the initial polyline, we just save the new one separately.
What happened: at some point, the calculated route had a 36 minute/37 km difference, which triggered the save. When we looked over the saved result, the polyline was identical, but the time and distance differed. The CarPosition point was 100% on the route indicated by the first route.
To summarize:
1) A -> B : 187 km, ~2.42h
2) A -> CarPosition -> B : 223 km, 2.9h
Car position point was on the route given by 1) and 2) has the same polyline as 1).
Also, this only happened a couple of times and does not reproduce anymore.
Are we missing something?
Thanks,
John