I have seen in the documentation of pgeocde (https://pypi.org/project/pgeocode/) that you first have to pass in the country code in order to get country information. However, I cannot find anything on getting the country information by passing parameters such as country name or country zip code. I am wondering if this is possible?
From documentation:
>>> import pgeocode
>>> nomi = pgeocode.Nominatim('fr')
>>> nomi.query_postal_code("75013")
postal_code 75013
country code FR
place_name Paris 13
state_name Île-de-France
state_code 11
county_name Paris
county_code 75
community_name Paris
community_code 751
latitude 48.8322
longitude 2.3561
accuracy 5
So, instead of passing fr (which is a country code) as a parameter, is there a way to pass in the country name or zip code in order to get country information?