aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/org')
-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