2025-09-14 13:20:09 +02:00
|
|
|
|
|
|
|
|
GetMarkerData();
|
2025-10-14 15:41:39 +02:00
|
|
|
const Data_api = "/api/webhook/data";
|
2025-09-26 22:16:21 +02:00
|
|
|
let freight =null;
|
2025-09-14 13:20:09 +02:00
|
|
|
|
2025-10-14 15:41:39 +02:00
|
|
|
ReqData = { Places: "Stadte"}
|
|
|
|
|
|
2025-10-08 14:01:35 +02:00
|
|
|
// Post to n8n Server to get Data from Grist in JSON format.
|
2025-09-14 13:20:09 +02:00
|
|
|
async function GetMarkerData() {
|
2025-10-08 13:56:41 +02:00
|
|
|
|
2025-10-14 15:41:39 +02:00
|
|
|
try {
|
|
|
|
|
const res = await axios.post(Data_api, ReqData);
|
|
|
|
|
console.log("Antwort n8n:" + res.data);
|
|
|
|
|
|
|
|
|
|
} catch (err) {
|
|
|
|
|
console.error (err);
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-14 13:20:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2025-10-14 15:41:39 +02:00
|
|
|
function RenderMarkers(data){
|
2025-09-14 13:20:09 +02:00
|
|
|
console.log(data);
|
|
|
|
|
|
2025-09-07 15:02:12 +02:00
|
|
|
}
|
|
|
|
|
|
2025-10-14 15:41:39 +02:00
|
|
|
|