Can’t figure out why my weather won’t show up using OpenWeather API: Here’s my codepen: CodePen
I might be completely beside the point but…
It says “position is not defined” - the problem (I think) is that you use the word position both as argument and then as variable. Try to change that - make sure you declare var position somewhere, give the argument another name.
And I may be wrong but I think this geolocation thing doesn’t work anymore because I did it and there was a problem (something with unsecured origin).
1 Like
Thanks a lot! for your response. You were right. I ultimately wound up just using ip-api then routing the coordinates to openweather. It was a secure network issue.
1 Like