Skip to content

Commit f318e40

Browse files
Merge pull request #221 from DamyanBG/Simple-get-coordinates-program
simple get coordinates program
2 parents c00fccb + 17a8cbe commit f318e40

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

get_coordinates.py

+10
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)