def check_if_address_is_valid(address): if address.is_valid: latitude = address.getLatitude() longitude = address.getLongitude() return (latitude, longitude)