exchange.getIn().setHeader(GeoCoderConstants.LAT, resLat.toPlainString());
exchange.getIn().setHeader(GeoCoderConstants.LNG, resLon.toPlainString());
String resLatlng = resLat.toPlainString() + "," + resLon.toPlainString();
exchange.getIn().setHeader(GeoCoderConstants.LATLNG, resLatlng);
GeocoderAddressComponent country = getCountry(res);
if (country != null) {
exchange.getIn().setHeader(GeoCoderConstants.COUNTRY_SHORT, country.getShortName());
exchange.getIn().setHeader(GeoCoderConstants.COUNTRY_LONG, country.getLongName());
}
GeocoderAddressComponent city = getCity(res);
if (city != null) {
exchange.getIn().setHeader(GeoCoderConstants.CITY, city.getLongName());
}
}
}