def getDownloadURL(self, filetype=None, selectors=None, filename=None): """Get a download URL for this feature collection. Args: filetype: The filetype of download, either CSV or JSON. Defaults to CSV. selectors: The selectors that should be used to determine which attributes will be downloaded. filename: The name of the file to be downloaded. Returns: A URL to download the specified feature collection. """ request = {} request['table'] = self.serialize() if filetype is not None: request['format'] = filetype.upper() if filename is not None: request['filename'] = filename if selectors is not None: request['selectors'] = selectors return data.makeTableDownloadUrl(data.getTableDownloadId(request))