I managed to get a lat. and lon. from a geolocation api, and I’ve managed to concatenate the lat and lon into the URL for openweathermap along with my key.
I made an api call to openweathermap, but I can’t seem to get the JSON. I’m getting something because I put alert(JSON.stringify(data)) (line 12 of my JS in code pen) and it shows me the weather object as a string. I’ve tried JSON.parse() and it’s not working…I didn’t need to parse anything from the geolocation api.
Here is my code pen.