From 22fdf5388719120b84ce981807d17d68e87a0c07 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 20 Dec 2016 17:36:22 +1300 Subject: Fix location provider result decoding --- src/org/traccar/location/UniversalLocationProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/org/traccar/location/UniversalLocationProvider.java b/src/org/traccar/location/UniversalLocationProvider.java index 624d020a5..7f7028545 100644 --- a/src/org/traccar/location/UniversalLocationProvider.java +++ b/src/org/traccar/location/UniversalLocationProvider.java @@ -46,7 +46,7 @@ public class UniversalLocationProvider implements LocationProvider { JsonObject location = json.getJsonObject("location"); callback.onSuccess( location.getJsonNumber("lat").doubleValue(), - location.getJsonNumber("lon").doubleValue(), + location.getJsonNumber("lng").doubleValue(), json.getJsonNumber("accuracy").doubleValue()); } return null; -- cgit v1.2.3