Can anyone help me about weather app

Can anyone help me about weather app
0

#1

i am working on weather app

i get the lat and long data correctly from http://ip-api.com/json
but when i want to use this data in weatherapi the values are changing.
thanks,


#2

How are the values changing? Nothing looks wrong to me.


#3

thanks portablestick
the latitude and longitude values are different than where i live. actually first i take and put them into html they are correct, but when i put them into http://api.openweathermap.org/data/2.5/weather?lat=" + latitude + " &lon=" + longitude + “&units=metric&appid=d6d7b8a9bbb1a95f06dc5e708350285d” they give different results.


#5

Your code is fine, but you have one blank space in your query that is breaking it all. Just before &lon


#6

Mizu thank you very much, it solved my problem. I’ve tried so many things that you cannot imagine :slight_smile:


#7

Hey, @saracaliemre,

Thanks for posting this question. Didn’t know about http://ip-api.com/json and you have solved my problem.

Thanks!

Nathan