fyi, thought this was fun: `def distance_to_collec...
# pacc-may-31-2023
l
fyi, thought this was fun:
def distance_to_collector(lat,lon):
params = {"latitude":lat, "longitude":lon, "hourly":"temperature_2m"}
result = httpx.get("<https://api.open-meteo.com/v1/forecast/>",params = params).json()
collector_lat = result['latitude']
collector_lon = result['longitude']
return haversine.haversine((lat,lon),(collector_lat,collector_lon),unit=haversine.Unit.FEET)
j
haversining it - nice!