From b8254210a97e833fbf396f0af9aa9e49339d8284 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Tue, 2 Apr 2024 21:40:18 +0200 Subject: Pass HAFAS service on to geostop --- public/static/js/geostop.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public') diff --git a/public/static/js/geostop.js b/public/static/js/geostop.js index 80e8311..00699ec 100644 --- a/public/static/js/geostop.js +++ b/public/static/js/geostop.js @@ -61,7 +61,8 @@ $(function() { }; const processLocation = function(loc) { - $.post('/_geolocation', {lon: loc.coords.longitude, lat: loc.coords.latitude}, processResult).fail(function(jqXHR, textStatus, errorThrown) { + const param = new URLSearchParams(window.location.search); + $.post('/_geolocation', {lon: loc.coords.longitude, lat: loc.coords.latitude, hafas: param.get('hafas')}, processResult).fail(function(jqXHR, textStatus, errorThrown) { removeStatus(); showError("Netzwerkfehler: ", textStatus, errorThrown); }); -- cgit v1.2.3