Help: my weather app is showing the wrong city

Help: my weather app is showing the wrong city
0

#1

Please, I will like coders in the house to take a look at my live weather app. It is showing me the wrong city. Where did i get it wrong?

See the Pen Live Weather App by AMADI LUCKY SAMPSON (@tranxcop) on CodePen.


#2

The application is using your browser’s location ability. Are you by chance using a VPN or anything else that would show your IP address non-locally?


#3

I had the similar problem with my project,so I ended up using “https://freegeoip.net/json/” to get the location information based on IP Address, and then using that json to fetch information from weather API. I hope it may help