Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Errors in the maps section of 'Earthquakes solution' page #51

Open
K-Meech opened this issue Feb 29, 2024 · 1 comment
Open

Errors in the maps section of 'Earthquakes solution' page #51

K-Meech opened this issue Feb 29, 2024 · 1 comment

Comments

@K-Meech
Copy link

K-Meech commented Feb 29, 2024

Obtaining maps from OpenStreetMap for the earthquakes exercise solution currently doesn't work. All the output blocks in that section show errors e.g.:

---------------------------------------------------------------------------
AssertionError                            Traceback (most recent call last)
Cell In [24], line 1
----> 1 get_map_tile_at(latitude=51.477806, longitude=-0.001472, zoom=14)

Cell In [23], line 5, in get_map_tile_at(latitude, longitude, zoom, satellite)
      3 tile_url = f"http://a.tile.openstreetmap.org/{zoom}/{x}/{y}.png"
      4 response = requests.get(tile_url)
----> 5 assert response.status_code == 200
      6 return IPython.core.display.Image(response.content)

AssertionError: 
@dpshelio
Copy link
Member

This needs to be updated to what was used on the example program. We've been changing this back and forth as the services have changed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants