Actually this is for personal use

This commit is contained in:
mez 2025-04-27 12:16:13 +01:00
parent 8562d9f2bf
commit a0cb496ffc
20 changed files with 2229 additions and 0 deletions

25
placegen.py Normal file
View file

@ -0,0 +1,25 @@
import time
from geopy.geocoders import Nominatim
geo = Nominatim(user_agent="python3")
place = input("Place to look up: ")
lat = None
while lat == None:
try:
lat = geo.geocode(place).latitude
except:
time.sleep(3)
continue
thelong = None
while thelong == None:
try:
thelong = geo.geocode(place).longitude
except:
time.sleep(3)
continue
print("{\"lookup\":\"" + place + "\",\"lat\":" + str(lat) + ",\"long\":" + str(thelong) + "}")