

def get(self, maxheight=None, maxwidth=None, sensor=False):
    'Fetch photo from API.'
    if ((not maxheight) and (not maxwidth)):
        raise GooglePlacesError('You must specify maxheight or maxwidth!')
    result = _get_place_photo(self.photo_reference, self._query_instance.api_key, maxheight=maxheight, maxwidth=maxwidth, sensor=sensor)
    (self.mimetype, self.filename, self.data, self.url) = result

dataset/ETHPy150Open slimkrazy/python-google-places/googleplaces/__init__.py Photo.get/original