aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geocode/AddressFormat.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 13:57:03 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 13:57:03 +1300
commita045472079bb83bb318605d65bac45bb575b29c3 (patch)
tree9da9e32108ba2d1f4fad6ddc0c854707f3e84eef /src/org/traccar/geocode/AddressFormat.java
parentbe088ea967dfe7d1a7de3ec824382afc92aab128 (diff)
downloadtrackermap-server-a045472079bb83bb318605d65bac45bb575b29c3.tar.gz
trackermap-server-a045472079bb83bb318605d65bac45bb575b29c3.tar.bz2
trackermap-server-a045472079bb83bb318605d65bac45bb575b29c3.zip
Add suburb to address class
Diffstat (limited to 'src/org/traccar/geocode/AddressFormat.java')
-rw-r--r--src/org/traccar/geocode/AddressFormat.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/geocode/AddressFormat.java b/src/org/traccar/geocode/AddressFormat.java
index a90de8c5e..a2a0862bf 100644
--- a/src/org/traccar/geocode/AddressFormat.java
+++ b/src/org/traccar/geocode/AddressFormat.java
@@ -27,6 +27,7 @@ import java.text.ParsePosition;
* %s - state
* %d - district
* %t - settlement (town)
+ * %u - suburb
* %r - street (road)
* %h - house
*
@@ -62,6 +63,7 @@ public class AddressFormat extends Format {
result = replace(result, "%s", address.getState());
result = replace(result, "%d", address.getDistrict());
result = replace(result, "%t", address.getSettlement());
+ result = replace(result, "%u", address.getSuburb());
result = replace(result, "%r", address.getStreet());
result = replace(result, "%h", address.getHouse());