aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocoder/GisgraphyGeocoder.java
diff options
context:
space:
mode:
authorAnshul Jain <anshuljain1985@gmail.com>2018-02-26 14:54:06 +0530
committerAnshul Jain <anshuljain1985@gmail.com>2018-02-26 14:54:06 +0530
commit7e973874a9c15a3c84cd948ad29c1416afc3dd2a (patch)
treeea6f0c5c5fd60115201ea53be55f0e838d362724 /src/org/traccar/geocoder/GisgraphyGeocoder.java
parentb05d7ad4d3d805fc3c622953a85333ade00a86f2 (diff)
downloadtrackermap-server-7e973874a9c15a3c84cd948ad29c1416afc3dd2a.tar.gz
trackermap-server-7e973874a9c15a3c84cd948ad29c1416afc3dd2a.tar.bz2
trackermap-server-7e973874a9c15a3c84cd948ad29c1416afc3dd2a.zip
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;
}