mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-07-04 17:01:03 +02:00
Update locationdata.py
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ from geopy.geocoders import Nominatim # pip install geopy
|
||||
|
||||
def where_am_i(lat=0, lon=0):
|
||||
# initialize Nominatim API
|
||||
geolocator = Nominatim(user_agent="geoapiExercises")
|
||||
geolocator = Nominatim(user_agent="mesh-bot")
|
||||
|
||||
location = geolocator.reverse(lat+","+lon)
|
||||
address = location.raw['address']
|
||||
|
||||
Reference in New Issue
Block a user