aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocoder/GisgraphyGeocoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-02-26 23:05:52 +1300
committerGitHub <noreply@github.com>2018-02-26 23:05:52 +1300
commit55160d10bee21f58e82339675bd869f408ff7a2d (patch)
tree55a5f0481e0da4f73f0fab0a82ece1f655b89403 /src/org/traccar/geocoder/GisgraphyGeocoder.java
parentd6d7b9b95df252c611b1106fa84d325f34ae72da (diff)
parent7e973874a9c15a3c84cd948ad29c1416afc3dd2a (diff)
downloadtrackermap-server-55160d10bee21f58e82339675bd869f408ff7a2d.tar.gz
trackermap-server-55160d10bee21f58e82339675bd869f408ff7a2d.tar.bz2
trackermap-server-55160d10bee21f58e82339675bd869f408ff7a2d.zip
Merge pull request #3786 from AnshulJain1985/Formatted-Address
To use formatted address directly instead of creating address
Diffstat (limited to 'src/org/traccar/geocoder/GisgraphyGeocoder.java')
-rw-r--r--src/org/traccar/geocoder/GisgraphyGeocoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/geocoder/GisgraphyGeocoder.java b/src/org/traccar/geocoder/GisgraphyGeocoder.java
index a0c831966..3a173f985 100644
--- a/src/org/traccar/geocoder/GisgraphyGeocoder.java
+++ b/src/org/traccar/geocoder/GisgraphyGeocoder.java
@@ -45,6 +45,9 @@ public class GisgraphyGeocoder extends JsonGeocoder {
if (result.containsKey("countryCode")) {
address.setCountry(result.getString("countryCode"));
}
+ if (result.containsKey("formatedFull")) {
+ address.setFormattedAddress(result.getString("formatedFull"));
+ }
return address;
}