I have this function that calls the OpenWeatherMap API, provided with a city name and returns lat, lon in an array.
function geolocate(city_name) { su