diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-17 10:37:47 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-06-17 10:37:47 +1200 |
commit | 6cc356e9bb80583444f9a721b1604b3130199e24 (patch) | |
tree | 2ccaffc6f65df643eb76264c49f80f3f1216b915 | |
parent | 771e2d7c4ceb34c0b62852130061b04640b8ee71 (diff) | |
download | traccar-server-6cc356e9bb80583444f9a721b1604b3130199e24.tar.gz traccar-server-6cc356e9bb80583444f9a721b1604b3130199e24.tar.bz2 traccar-server-6cc356e9bb80583444f9a721b1604b3130199e24.zip |
Fix geocoder selection code
-rw-r--r-- | src/org/traccar/Context.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 16ff33f18..b3fe881e6 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -99,7 +99,7 @@ public class Context { String type = properties.getProperty("geocoder.type"); if (type != null && type.equals("nominatim")) { reverseGeocoder = new NominatimReverseGeocoder(properties.getProperty("geocoder.url")); - } if (type != null && type.equals("gisgraphy")) { + } else if (type != null && type.equals("gisgraphy")) { reverseGeocoder = new GisgraphyReverseGeocoder(properties.getProperty("geocoder.url")); } else { reverseGeocoder = new GoogleReverseGeocoder(); |