Package org.hoteia.qalingo.core.web.bean.geoloc.json

Examples of org.hoteia.qalingo.core.web.bean.geoloc.json.GoogleGeoCode


                    responseStrBuilder.append(inputStr);
                }
                String json = responseStrBuilder.toString();
               
                ObjectMapper mapper = new ObjectMapper();
                GoogleGeoCode geoCode = mapper.readValue(json, GoogleGeoCode.class);
               
                geolocCity = new GeolocCity();
                geolocCity.setCity(city);
                geolocCity.setCountry(country);
                geolocCity.setJson(json);
                geolocCity.setLatitude(geoCode.getLatitude());
                geolocCity.setLongitude(geoCode.getLongitude());
                geolocCity = geolocDao.saveOrUpdateGeolocCity(geolocCity);
               
            } catch (IllegalStateException e) {
                logger.error("", e);
            } catch (IOException e) {
View Full Code Here

TOP

Related Classes of org.hoteia.qalingo.core.web.bean.geoloc.json.GoogleGeoCode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.