public void setResponse(GeocodeResponse response) { if (response != null) { this.formattedAddress = response.getFormattedAddress(); this.latitude = response.getLatitude(); this.longitude = response.getLongitude(); this.geocodeLevel = response.getGeocodeLevel(); } }