Skip to content

Commit

Permalink
Update download.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio9701 authored Jul 17, 2024
1 parent 8d74d6e commit 91df6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion urbanpy/download/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def nominatim_osm(query: str, expected_position: "int | None" = 0, email: str =
geometry | place_id | osm_type | osm_id | display_name | place_rank | category | type | importance | icon
MULTIPOLYGON | 235480647 | relation | 1944670.0 | Lima, Peru | 12 | boundary | administrative | 0.703484 | https://nominatim.openstreetmap.org/images/map...
"""
if email === "":
if email == "":
raise ValueError("Please provide an email to avoid violating Nominatim API rules.")
osm_url = "https://nominatim.openstreetmap.org/search.php"
osm_parameters = {
Expand Down

0 comments on commit 91df6b3

Please sign in to comment.