Fix incorrect timestamps for Google Location History (mobile device) points

This commit is contained in:
Eugene Burmakin
2024-09-30 23:31:42 +02:00
parent 2681d72463
commit ec793fe4aa
6 changed files with 27 additions and 5 deletions
@@ -354,10 +354,12 @@ console.log(selectedLayerName);
const timeBetweenPrev = Math.round((startPoint[4] - prevPoint[4]) / 60);
const timeBetweenNext = Math.round((endPoint[4] - nextPoint[4]) / 60);
const pointsNumber = polylineCoordinates.length;
popupContent += `
<b>Prev Route:</b> ${Math.round(distanceToPrev)}m and ${minutesToDaysHoursMinutes(timeBetweenPrev)} away<br>
<b>Next Route:</b> ${Math.round(distanceToNext)}m and ${minutesToDaysHoursMinutes(timeBetweenNext)} away<br>
<b>Points:</b> ${pointsNumber}<br>
`;
}