|
|
|
@ -319,10 +319,10 @@ function markDelivered(id, delivered) {
|
|
|
|
|
|
|
|
|
|
packages[i].items[j].delivered = delivered;
|
|
|
|
|
let gpslink = "";
|
|
|
|
|
if (userPosition.coords.accuracy < 40 && timeDiff(userPosition.updated) < 10) {
|
|
|
|
|
let lat = userPosition.coords.latitude;
|
|
|
|
|
let lon = userPosition.coords.longitude;
|
|
|
|
|
gpslink = "<br /><a class='geolink' href='geo:" + lat + "," + lon + "'>" + lat + ", " + lon + "</a>";
|
|
|
|
|
if (userPosition.coords.accuracy < 40 && timeDiff(userPosition.updated) < 15) {
|
|
|
|
|
var lat = parseFloat(userPosition.coords.latitude).toFixed(5);
|
|
|
|
|
var lon = parseFloat(userPosition.coords.longitude).toFixed(5);
|
|
|
|
|
gpslink = "<br /><a class='geolink' href='geo:" + lat + "," + lon + "'>" + lat + ", " + lon + "</a> (±" + getDisplayDistance(userPosition.coords.accuracy, false) + ")";
|
|
|
|
|
}
|
|
|
|
|
if (delivered) {
|
|
|
|
|
packages[i].items[j].deliverytimestamp = time();
|
|
|
|
|