diff --git a/public/static/js/geolocation.js b/public/static/js/geolocation.js
index 50801a56acd2025c5a1cfb517fb11d6e5411ac01..f186d2e5b64cd661bb9efd79658becb7a9839e6d 100644
--- a/public/static/js/geolocation.js
+++ b/public/static/js/geolocation.js
@@ -26,22 +26,16 @@ $(document).ready(function() {
} else if (data.candidates.length == 0) {
showError('Keine Bahnhöfe in 70km Umkreis gefunden', '', null);
} else {
- resultTable = $('
')
- resultBody = resultTable.children();
+ const res = $(document.createElement('p'));
$.each(data.candidates, function(i, candidate) {
- var ds100 = candidate.ds100,
+ const ds100 = candidate.ds100,
name = candidate.name,
- distance = candidate.distance;
- distance = distance.toFixed(1);
+ distance = candidate.distance.toFixed(1);
- var stationlink = $(document.createElement('a'));
- stationlink.attr('href', ds100);
- stationlink.text(name);
-
- resultBody.append('| ' + name + ' |
');
+ res.append($('' + name + ''));
});
- getPlaceholder().replaceWith(resultTable);
+ getPlaceholder().replaceWith(res);
}
};