• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forecast api sending incorrect data?

 
Debdeep Ganguly
Greenhorn
Posts: 15
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the json (or my app data) :



Now take a look at the normal data from the offical website:

Temp is rising. Pressure is falling.
Low, 22° at 5AM,
High, 25° at 3PM.
Wind: 3 km/h
Humidity: 91%  // And see this one!
Dew Pt: 22
Visibility: —
Pressure: 1011 mb

My question is I took the recordings at very short instance of time gap but still they differ, why so or this is just some of just my misconceptions ? Any help please, thanks.
 
Tim Moores
Bartender
Posts: 3128
50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While it's impossible to know what's going on without knowing the data source (which you didn't tell us), it seems obvious that the JSON uses different units of measurement, like C vs. F for the temperature, and decimal vs. Percent for the humidity. So some conversion may be required. A good API would have documentation that describes in detail what kind of data it returns.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic