summaryrefslogtreecommitdiff
path: root/public/static
diff options
context:
space:
mode:
Diffstat (limited to 'public/static')
-rw-r--r--public/static/geolocation.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/static/geolocation.js b/public/static/geolocation.js
index 6e5fdb5..f34e1e1 100644
--- a/public/static/geolocation.js
+++ b/public/static/geolocation.js
@@ -18,9 +18,9 @@ $(document).ready(function() {
} else {
$.each(data.candidates, function(i, candidate) {
- var ds100 = candidate[0][0],
- name = candidate[0][1],
- distance = candidate[1];
+ var ds100 = candidate.ds100,
+ name = candidate.name,
+ distance = candidate.distance;
distance = distance.toFixed(1);
var stationlink = $(document.createElement('a'));