mapreader.download.downloader

Classes

Downloader

A class to download maps (without using metadata)

Module Contents

class mapreader.download.downloader.Downloader(download_url)

A class to download maps (without using metadata)

Parameters:

download_url (str | list)

download_url
download_map_by_polygon(polygon, zoom_level=14, path_save='maps', overwrite=False, map_name=None, **kwargs)

Downloads a map contained within a polygon.

Parameters:
  • polygon (Polygon) – A polygon defining the boundaries of the map

  • zoom_level (int, optional) – The zoom level to use, by default 14

  • path_save (str, optional) – Path to save map sheets, by default “maps”

  • overwrite (bool, optional) – Whether to overwrite existing maps, by default False.

  • map_name (str, optional) – Name to use when saving the map, by default None

  • **kwargs (dict) – Additional keyword arguments to pass to the _download_map method

Return type:

None