From c0f9ce8253c837acbfb5c7e431f569a2dc247ab9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 11 May 2016 22:54:29 +0200 Subject: public geolocation json format --- public/static/geolocation.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'public') 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')); -- cgit v1.2.3