aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-29 12:16:13 -0700
committerGitHub <noreply@github.com>2021-09-29 12:16:13 -0700
commit8c2db11e30211339d406299b0dbbe6561fe4d0bd (patch)
tree9fe2be5567dd3d651a56cfb709914a7418745fd7 /src/main/java
parent2204c9830058fe33a4bf426636468a9ec0749a83 (diff)
parentd7ed8ea799e9c0006e154f26969a6905b81eae0f (diff)
downloadtrackermap-server-8c2db11e30211339d406299b0dbbe6561fe4d0bd.tar.gz
trackermap-server-8c2db11e30211339d406299b0dbbe6561fe4d0bd.tar.bz2
trackermap-server-8c2db11e30211339d406299b0dbbe6561fe4d0bd.zip
Merge pull request #4747 from jcardus/patch-3
Fix Here geocoder formatted address
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/geocoder/HereGeocoder.java4
1 files changed, 2 insertions, 2 deletions
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")) {