if (lon >= -180 && lon <= 180 && lat <= 90 && lat >= -90) { GeoTag location = new GeoTag(); location.setLatitude(lat); location.setLongitude(lon); pol.setLocation((location));
if (lon >= -180 && lon <= 180 && lat <= 90 && lat >= -90) { GeoTag location = new GeoTag(); location.setLatitude(lat); location.setLongitude(lon); pol.setLocation((location));