private void initGeocoder(Properties properties) throws IOException {
if (Boolean.parseBoolean(properties.getProperty("geocoder.enable"))) {
String type = properties.getProperty("geocoder.type");
if (type != null && type.equals("nominatim")) {
reverseGeocoder = new NominatimReverseGeocoder(
getProperties().getProperty("geocoder.url"));
} else {
reverseGeocoder = new GoogleReverseGeocoder();
}
}