From 6cc356e9bb80583444f9a721b1604b3130199e24 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 17 Jun 2015 10:37:47 +1200 Subject: Fix geocoder selection code --- src/org/traccar/Context.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar') 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(); -- cgit v1.2.3