geopandas / contextily

Context geo-tiles in Python
https://contextily.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
520 stars 82 forks source link

ConnectTimeout when adding as basemap #246

Open BastienGauthier opened 2 months ago

BastienGauthier commented 2 months ago

Hello,

I work with geopandas 1.0.1 and contextily 1.6.0. I tried to add a basemap using contextily, but with no success, even when switching the source via cx.providers. Note that I usually do this with folium or plotly without issue. Nevertheless, I am on my professional computer, so a firewall issue would not surprise me.

The depicted error after ax.add_basemap(...) :

ConnectTimeout: HTTPSConnectionPool(host='tile.openstreetmap.org', port=443): Max retries exceeded with url: /9/257/175.png (Caused by ConnectTimeoutError(, 'Connection to tile.openstreetmap.org timed out. (connect timeout=None)'))

Regards,

martinfleis commented 2 months ago

Is it a recurring issue? It may as well be a temporary issue caused by some hiccups on the tile server.

BastienGauthier commented 1 month ago

I retried today with the same error : it seems like a recurring issue indeed.

martinfleis commented 1 month ago

Can you share a reproducible example?