summaryrefslogtreecommitdiff
path: root/public/static
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-08-16 18:54:32 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-08-16 18:54:32 +0200
commit654bde9278ed67d98f218d58f5fc8579a633729b (patch)
treea312ac4931c52f3aa1e353149f12cbd45701c3b2 /public/static
parent5d330a773810f6801c94cd5469f5cec8adf5a420 (diff)
geosearch: always query iris and hafas stops
Diffstat (limited to 'public/static')
-rw-r--r--public/static/js/geolocation.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js
index 42c7f1e..5da28d8 100644
--- a/public/static/js/geolocation.js
+++ b/public/static/js/geolocation.js
@@ -46,11 +46,12 @@ $(document).ready(function() {
const res = $(document.createElement('p'));
$.each(data.candidates, function(i, candidate) {
- const ds100 = candidate.ds100,
+ const eva = candidate.eva,
name = candidate.name,
+ hafas = candidate.hafas,
distance = candidate.distance.toFixed(1);
- const node = $('<a class="tablerow" href="/s/' + ds100 + '"><span>' + name + '</span></a>');
+ const node = $('<a class="tablerow" href="/s/' + eva + '?hafas=' + hafas + '"><span>' + name + '</span></a>');
node.click(function() {
$('nav .preloader-wrapper').addClass('active');
});