

def _generate_lat_lng_string(self, lat_lng, location):
    try:
        return ('%(lat)s,%(lng)s' % (lat_lng if (lat_lng is not None) else geocode_location(location)))
    except:
        raise ValueError("lat_lng must be a dict with the keys, 'lat' and 'lng'")

dataset/ETHPy150Open slimkrazy/python-google-places/googleplaces/__init__.py GooglePlaces._generate_lat_lng_string/original