Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Two "weather" objects with different weather, for same city (as defined by lat/lon)

ben Jun 14, 2017 05:19PM UTC

A call to weather with lat lon is returning two weather objects, below. One has the right weather. One has wrong weather (rain - and it hasn't rained in days). Anyone know what's going on? How do i know which object to use in my code? Why is one of them wrong?

http://api.openweathermap.org/data/2.5/weather?APPID=MYAPPID&mode=json&units=imperial&lat=37.7749&lon=-122.4194

coord
lon -122.42
lat 37.77
weather
0
id 300
main "Drizzle"
description "light intensity drizzle"
icon "09d"
1
id 701
main "Mist"
description "mist"
icon "50d"
base "stations"
main
temp 65.35
pressure 1015
humidity 46
temp_min 55.4
temp_max 78.8
visibility 16093
wind
speed 5.82
deg 350
clouds
all 1
dt 1497459180
sys
type 1
id 374
message 0.0043
country "US"
sunrise 1497444435
sunset 1497497598
id 5391959
name "San Francisco"
cod 200

Up 0 rated Down
Maxim Gushcho Jun 19, 2017 10:43AM UTC OpenWeatherMap Agent

Hello,

There are cases when multiples weather conditions are specified in the API response because of the specific weather conditions of location.
So, you can use each of them.

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
9eda11838f597e7a95b6a1c991dcae0a@openweathermap.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete