geopandas/contextily

Context geo-tiles in Python

Jupyter Notebook

598

326 commits

updated Jul 27, 2026

See the code

README

contextily: context geo tiles in Python

contextily is a small Python 3 (3.10 and above) package to retrieve tile maps from the internet. It can add those tiles as basemap to matplotlib figures or write tile maps to disk into geospatial raster files. Bounding boxes can be passed in both WGS84 (EPSG:4326) and Spheric Mercator (EPSG:3857). See the notebook contextily_guide.ipynb for usage.

Tests codecov Binder

Tiles

The current tile providers that are available in contextily are the providers defined in the xyzservices package. This includes some popular tile maps, such as:

Dependencies

  • mercantile
  • numpy
  • matplotlib
  • pillow
  • rasterio
  • requests
  • geopy
  • joblib
  • xyzservices

Installation

Python 3 only (3.10 and above)

Latest released version, using pip:

pip3 install contextily

or conda:

conda install contextily

Contributors

contextily is developed by a community of enthusiastic volunteers. You can see a full list here.

If you would like to contribute to the project, have a look at the list of open issues, particularly those labeled as good first contributions.

License

BSD compatible. See LICENSE.txt

cartography
geography
mapping
matplotlib
openstreetmap
osm
python
stamen
stamen-maps
tile
tiles
webtiles

geopandas/contextily

Context geo-tiles in Python

Jupyter Notebook

598

326 commits

updated Jul 27, 2026

See the code

README

contextily: context geo tiles in Python

contextily is a small Python 3 (3.10 and above) package to retrieve tile maps from the internet. It can add those tiles as basemap to matplotlib figures or write tile maps to disk into geospatial raster files. Bounding boxes can be passed in both WGS84 (EPSG:4326) and Spheric Mercator (EPSG:3857). See the notebook contextily_guide.ipynb for usage.

Tests codecov Binder

Tiles

The current tile providers that are available in contextily are the providers defined in the xyzservices package. This includes some popular tile maps, such as:

Dependencies

  • mercantile
  • numpy
  • matplotlib
  • pillow
  • rasterio
  • requests
  • geopy
  • joblib
  • xyzservices

Installation

Python 3 only (3.10 and above)

Latest released version, using pip:

pip3 install contextily

or conda:

conda install contextily

Contributors

contextily is developed by a community of enthusiastic volunteers. You can see a full list here.

If you would like to contribute to the project, have a look at the list of open issues, particularly those labeled as good first contributions.

License

BSD compatible. See LICENSE.txt

cartography
geography
mapping
matplotlib
openstreetmap
osm
python
stamen
stamen-maps
tile
tiles
webtiles

Project health

Latest release

1.7.1 · Jul 10, 2026

Releases this year

2

Significant stargazers

Kolen Cheung

34 followers · starred Feb 2021

Dongdong Tian

1,334 followers · starred Sep 2022

Stefan Binder

32 followers · starred May 2023