summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-05-11 22:54:29 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-05-11 22:54:29 +0200
commitc0f9ce8253c837acbfb5c7e431f569a2dc247ab9 (patch)
tree18809da2f72a080926a678dd55497ffe86017aaf /public
parent7c62efcbdce785f77f48e56ce7876a496e6cce89 (diff)
public geolocation json format
Diffstat (limited to 'public')
-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'));