added comment
This commit is contained in:
parent
0965664779
commit
28f5f2684b
52
functions.js
52
functions.js
@ -30,29 +30,29 @@ async function createDb(){
|
||||
await db.put('2022-07-01T10:49:38','49.4102198/8.67658131')
|
||||
await db.put('2022-07-01T10:49:44','49.40982577/8.67668618')
|
||||
await db.put('2022-07-01T10:49:50','49.4095211/8.6767495')
|
||||
// await db.put('0000','00/00');
|
||||
await db.put('0000','00/00');
|
||||
await db.put('2022-07-01T10:56:43','49.39117231/8.68814905')
|
||||
await db.put('2022-07-01T10:56:50','49.39076199/8.68818273')
|
||||
await db.put('2022-07-01T10:56:59','49.39058452/8.68776805')
|
||||
await db.put('2022-07-01T10:57:04','49.39048152/8.68746322')
|
||||
await db.put('2022-07-01T10:57:10','49.39009475/8.68742468')
|
||||
await db.put('2022-07-01T10:57:18','49.38966856/8.68741891')
|
||||
await db.put('2022-07-01T10:57:26','49.3896966/8.68683682')
|
||||
await db.put('2022-07-01T10:57:34','49.38985798/8.68647962')
|
||||
await db.put('2022-07-01T11:00:12','49.38983544/8.68654936')
|
||||
await db.put('2022-07-01T11:00:19','49.38982943/8.68686349')
|
||||
await db.put('2022-07-01T11:00:24','49.38988557/8.68711804')
|
||||
await db.put('2022-07-01T11:00:32','49.38975355/8.68742027')
|
||||
await db.put('2022-07-01T11:00:39','49.38968475/8.68789061')
|
||||
await db.put('2022-07-01T11:00:47','49.38968741/8.68864464')
|
||||
await db.put('2022-07-01T11:00:56','49.38981096/8.68935897')
|
||||
await db.put('2022-07-01T11:01:03','49.38991498/8.6898232')
|
||||
await db.put('2022-07-01T11:01:13','49.39008687/8.69005123')
|
||||
await db.put('2022-07-01T11:01:20','49.39012705/8.69004198')
|
||||
await db.put('2022-07-01T11:01:42','49.39012273/8.69044973')
|
||||
await db.put('2022-07-01T11:03:13','49.39020013/8.69013153')
|
||||
await db.put('2022-07-01T11:03:37','49.3902416/8.69011779')
|
||||
await db.put('2022-07-01T11:06:03','49.39010871/8.68987621')
|
||||
await db.put('2022-07-01T10:56:50','49.39076199/8.68818273')
|
||||
await db.put('2022-07-01T10:56:59','49.39058452/8.68776805')
|
||||
await db.put('2022-07-01T10:57:04','49.39048152/8.68746322')
|
||||
await db.put('2022-07-01T10:57:10','49.39009475/8.68742468')
|
||||
await db.put('2022-07-01T10:57:18','49.38966856/8.68741891')
|
||||
await db.put('2022-07-01T10:57:26','49.3896966/8.68683682')
|
||||
await db.put('2022-07-01T10:57:34','49.38985798/8.68647962')
|
||||
await db.put('2022-07-01T11:00:12','49.38983544/8.68654936')
|
||||
await db.put('2022-07-01T11:00:19','49.38982943/8.68686349')
|
||||
await db.put('2022-07-01T11:00:24','49.38988557/8.68711804')
|
||||
await db.put('2022-07-01T11:00:32','49.38975355/8.68742027')
|
||||
await db.put('2022-07-01T11:00:39','49.38968475/8.68789061')
|
||||
await db.put('2022-07-01T11:00:47','49.38968741/8.68864464')
|
||||
await db.put('2022-07-01T11:00:56','49.38981096/8.68935897')
|
||||
await db.put('2022-07-01T11:01:03','49.38991498/8.6898232')
|
||||
await db.put('2022-07-01T11:01:13','49.39008687/8.69005123')
|
||||
await db.put('2022-07-01T11:01:20','49.39012705/8.69004198')
|
||||
await db.put('2022-07-01T11:01:42','49.39012273/8.69044973')
|
||||
await db.put('2022-07-01T11:03:13','49.39020013/8.69013153')
|
||||
await db.put('2022-07-01T11:03:37','49.3902416/8.69011779')
|
||||
await db.put('2022-07-01T11:06:03','49.39010871/8.68987621')
|
||||
let csv = "./new.csv"
|
||||
const value = db.all
|
||||
//console.log(value)
|
||||
@ -132,7 +132,7 @@ await db.put('2022-07-01T11:06:03','49.39010871/8.68987621')
|
||||
increment = increment+1
|
||||
i = i+1
|
||||
}
|
||||
|
||||
// its only for converting the string array to a float array, because leaflethjs wants only a float array
|
||||
(function(elem) {
|
||||
var callee = arguments.callee;
|
||||
return elem instanceof Array ? elem.map(function(elem2) { return callee(elem2); })
|
||||
@ -156,9 +156,9 @@ async function createRouteObject(){
|
||||
}
|
||||
async function createlistitem() {
|
||||
var currentime = await getCurrentTime();
|
||||
var ul = document.getElementById("list");
|
||||
var li = document.createElement("li");
|
||||
li.appendChild(document.createTextNode("Last travelled route on: " +currentime+""));
|
||||
var ul = document.getElementById("list");
|
||||
var li = document.createElement("li");
|
||||
li.appendChild(document.createTextNode("Last travelled route on: " +currentime+""));
|
||||
ul.appendChild(li);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user