aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 12:00:36 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-30 12:00:36 +1300
commitbe088ea967dfe7d1a7de3ec824382afc92aab128 (patch)
tree874cf566bf0c8019803203045c0739bc42bb79fd /src
parenteb8b9dac624fcbb68659c1d6edf33bdfae2038dc (diff)
downloadtrackermap-server-be088ea967dfe7d1a7de3ec824382afc92aab128.tar.gz
trackermap-server-be088ea967dfe7d1a7de3ec824382afc92aab128.tar.bz2
trackermap-server-be088ea967dfe7d1a7de3ec824382afc92aab128.zip
Allow user to change address format
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/ReverseGeocoderHandler.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/org/traccar/ReverseGeocoderHandler.java b/src/org/traccar/ReverseGeocoderHandler.java
index 298f59736..62f045c17 100644
--- a/src/org/traccar/ReverseGeocoderHandler.java
+++ b/src/org/traccar/ReverseGeocoderHandler.java
@@ -33,7 +33,13 @@ public class ReverseGeocoderHandler implements ChannelUpstreamHandler {
public ReverseGeocoderHandler(ReverseGeocoder geocoder, boolean processInvalidPositions) {
this.geocoder = geocoder;
this.processInvalidPositions = processInvalidPositions;
- addressFormat = new AddressFormat();
+
+ String formatString = Context.getConfig().getString("geocoder.format");
+ if (formatString != null) {
+ addressFormat = new AddressFormat(Context.getConfig().getString("geocoder.format"));
+ } else {
+ addressFormat = new AddressFormat();
+ }
}
@Override