Closed dalwindr closed 2 years ago
import pgeocode nomi = pgeocode.Nominatim()
if "DZ" in pgeocode.COUNTRIES_VALID: print("country found") nomi = pgeocode.Nominatim("DZ") zipcodes = ["30200"] for i in nomi.query_postal_code(zipcodes).to_dict("records"): print("-----", i)
It was likely a temporary issue with the server hosting the data. Should be fixed now.
import pgeocode nomi = pgeocode.Nominatim()
if "DZ" in pgeocode.COUNTRIES_VALID: print("country found") nomi = pgeocode.Nominatim("DZ") zipcodes = ["30200"] for i in nomi.query_postal_code(zipcodes).to_dict("records"): print("-----", i)