We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c00fccb + 17a8cbe commit f318e40Copy full SHA for f318e40
get_coordinates.py
@@ -0,0 +1,10 @@
1
+from geopy.geocoders import Nominatim
2
+
3
+your_address = str(input())
4
5
+geolocator = Nominatim(user_agent="basic_app")
6
+location = geolocator.geocode(your_address)
7
+if location:
8
+ print((location.latitude, location.longitude))
9
+else:
10
+ print("Can not find your address!")
0 commit comments