diff --git a/locations.db b/locations.db index a145f1f..69f1d8d 100644 Binary files a/locations.db and b/locations.db differ diff --git a/templates/index.html b/templates/index.html index 55aea6d..4f30262 100644 --- a/templates/index.html +++ b/templates/index.html @@ -130,6 +130,7 @@ tr:nth-child(even) {background-color: #f2f2f2;} }) }) ]; + if (tidArray[i]==tidArray[i+1] && dateArray[i]==dateArray[i+1]) { total += distance(latArray[i], latArray[i+1], longArray[i], longArray[i+1]); @@ -148,6 +149,7 @@ tr:nth-child(even) {background-color: #f2f2f2;} }) }); } else { + total = 0; continue; }