from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="geoapiExercises")
place=input("Enter City Name: ")
location = geolocator.geocode(place)
print(location)
#clcoding.com
Enter City Name: Aundh
Aundh, Pune City, Pune, Maharashtra, 411027, India
0 Comments:
Post a Comment