summaryrefslogtreecommitdiff
path: root/public/static/js/geostop.js
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-02 21:40:18 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-02 21:40:18 +0200
commitb8254210a97e833fbf396f0af9aa9e49339d8284 (patch)
tree44e53d03e874d6987523f916dd9980680b01a9dd /public/static/js/geostop.js
parent8fe91bd6645e69ac576998abf00779aaf1f019aa (diff)
Pass HAFAS service on to geostop
Diffstat (limited to 'public/static/js/geostop.js')
-rw-r--r--public/static/js/geostop.js3
1 files changed, 2 insertions, 1 deletions
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);
});