

def delete_place(self, place_id, sensor=False):
    'Deletes a place from the Google Places database.\n\n        keyword arguments:\n        place_id   -- The textual identifier that uniquely identifies this\n                      Place, returned from a Place Search request.\n        sensor     -- Boolean flag denoting if the location came from a device\n                      using its location sensor (default False).\n        '
    request_params = {
        'place_id': place_id,
    }
    (url, delete_response) = _fetch_remote_json((GooglePlaces.DELETE_API_URL % (str(sensor).lower(), self.api_key)), json.dumps(request_params), use_http_post=True)
    _validate_response(url, delete_response)

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