From d7ed8ea799e9c0006e154f26969a6905b81eae0f Mon Sep 17 00:00:00 2001 From: jcardus Date: Wed, 29 Sep 2021 16:08:01 -0300 Subject: fix bug in here geocoder formatted address fix bug in here geocoder formatted address --- src/main/java/org/traccar/geocoder/HereGeocoder.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/org/traccar/geocoder/HereGeocoder.java b/src/main/java/org/traccar/geocoder/HereGeocoder.java index aaf11d74d..40390e65b 100644 --- a/src/main/java/org/traccar/geocoder/HereGeocoder.java +++ b/src/main/java/org/traccar/geocoder/HereGeocoder.java @@ -53,8 +53,8 @@ public class HereGeocoder extends JsonGeocoder { if (result != null) { Address address = new Address(); - if (json.containsKey("Label")) { - address.setFormattedAddress(json.getString("Label")); + if (result.containsKey("Label")) { + address.setFormattedAddress(result.getString("Label")); } if (result.containsKey("HouseNumber")) { -- cgit v1.2.3