_Reader.read_osm_var

_Reader.read_osm_var(meth, subregion_name, osm_file_format, data_dir=None, download=False, verbose=False, **kwargs)

Read data file of various formats (other than PBF and shapefile) for a geographic (sub)region.

Parameters
  • meth (Callable) – name of a class method for getting (auxiliary) prepacked data

  • subregion_name (str) – name of a geographic (sub)region (case-insensitive) that is available on a free download server

  • osm_file_format (str) – format (file extension) of OSM data

  • data_dir (str or None) – directory where the data file is located/saved, defaults to None; when data_dir=None, it refers to the directory specified by the corresponding downloader

  • download (bool) – whether to download/update the PBF data file of the given subregion, if it is not available at the specified path, defaults to True

  • verbose (bool or int) – whether to print relevant information in console as the function runs, defaults to False

  • kwargs – [optional] parameters of the method specified by meth

Returns

data of the specified file format

Return type

pandas.DataFrame or None

See examples for the methods BBBikeReader.read_csv_xz() and BBBikeReader.read_geojson_xz().