Python GeoPy Package: Get the city, state and country name of a specified latitude and longitude
Write a Python function to get the city, state and country name of a specified latitude and longitude using Nominatim API and Geopy package.
Sample Solution:
Python Code:
Sample Output:
('Bowdon', 'North Dakota', 'USA')
Python Code Editor:
Have another way to solve this solution? Contribute your code (and comments) through Disqus.
Previous: Write a Python program to find the location address of a specified latitude and longitude using Nominatim API and Geopy package.
Next: Write a Python program to calculate the distance between London and New York city.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.