/** * Create an instance of {@link GeoTag } * */ public GeoTag createGeoTag() { return new GeoTag(); }
double lon = Double.parseDouble(request.getParameter("locationlong")); if (lon >= -180 && lon <= 180 && lat <= 90 && lat >= -90) { GeoTag location = new GeoTag(); location.setLatitude(lat); location.setLongitude(lon);