VarReadParse.read_geojson_xz

classmethod VarReadParse.read_geojson_xz(geojson_xz_pathname, engine=None, parse_geometry=False)

Read/parse a compressed Osmium GeoJSON (.geojson.xz) data file.

Parameters
  • geojson_xz_pathname (str) – path to a .geojson.xz data file

  • engine (str or None) – an open-source Python package for JSON serialization, defaults to None; when engine=None, it refers to the built-in json module; otherwise options include: 'ujson' (for UltraJSON), 'orjson' (for orjson) and 'rapidjson' (for python-rapidjson)

  • parse_geometry (bool) – whether to reformat coordinates into a geometric object, defaults to False

Returns

tabular data of the Osmium GeoJSON file

Return type

pandas.DataFrame

See examples for the method BBBikeReader.read_geojson_xz().