Datasets Geofabrik

download Geofabrik data


source

list_geofabrik_regions

 list_geofabrik_regions ()

Get list of regions from geofabrik index


source

get_osm_download_url

 get_osm_download_url (region, year=None)

source

get_download_filepath

 get_download_filepath (url, directory)

source

download_geofabrik_region

 download_geofabrik_region (region:str, directory:str='data/',
                            overwrite=False, year=None,
                            show_progress=True, chunksize=8192)

Download geofabrik region to path


source

download_osm_region_data

 download_osm_region_data (region, year=None,
                           cache_dir='~/.cache/geowrangler',
                           use_cache=True, chunksize=8192,
                           show_progress=True)

source

OsmDataManager

 OsmDataManager (cache_dir='~/.cache/geowrangler')

An instance of this class provides convenience functions for loading and caching OSM data


source

OsmDataManager.load_pois

 OsmDataManager.load_pois (region, year=None, use_cache=True,
                           chunksize=1048576, show_progress=True)

source

OsmDataManager.load_roads

 OsmDataManager.load_roads (region, year=None, use_cache=True,
                            chunksize=1048576, show_progress=True)