From 61d2463c9d79026b3f84770a6db54f4a50ead5ce7f252bdd033d336e9663bdd9 Mon Sep 17 00:00:00 2001 From: Johannes Randerath Date: Tue, 11 Jun 2024 21:30:45 +0200 Subject: [PATCH] Fixing JSON parsing --- transport_accessibility/pt_map/templates/map.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/transport_accessibility/pt_map/templates/map.html b/transport_accessibility/pt_map/templates/map.html index 4106e3e..cf62edf 100644 --- a/transport_accessibility/pt_map/templates/map.html +++ b/transport_accessibility/pt_map/templates/map.html @@ -178,7 +178,10 @@ } function importGTFS() { - imported_data = JSON.parse('{{ data }}'); + stops = JSON.parse('{{ stops }}'); + routes = JSON.parse('{{ routes }}'); + timetable = JSON.parse('{{ timetable }}'); + alert("Import existing GTFS clicked"); // Logic to import existing GTFS would go here }