From 7e973874a9c15a3c84cd948ad29c1416afc3dd2a Mon Sep 17 00:00:00 2001 From: Anshul Jain Date: Mon, 26 Feb 2018 14:54:06 +0530 Subject: To use formatted address directly instead of creating address. --- src/org/traccar/geocoder/AddressFormat.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/org/traccar/geocoder/AddressFormat.java') diff --git a/src/org/traccar/geocoder/AddressFormat.java b/src/org/traccar/geocoder/AddressFormat.java index 0800d6dcc..220f268f1 100644 --- a/src/org/traccar/geocoder/AddressFormat.java +++ b/src/org/traccar/geocoder/AddressFormat.java @@ -66,6 +66,7 @@ public class AddressFormat extends Format { result = replace(result, "%u", address.getSuburb()); result = replace(result, "%r", address.getStreet()); result = replace(result, "%h", address.getHouse()); + result = replace(result, "%f", address.getFormattedAddress()); result = result.replaceAll("^[, ]*", ""); -- cgit v1.2.3