Concise query for the last hour of rainfall for a given latitude and longitude

  • 1
  • Question
  • Updated 6 years ago
What would you advise for a concise query for the last hour of rainfall for a given latitude and logitude? We are flexible on query type and response type. This is a great service and we look forward to expanded use.

Many thanks,

David Drake
Photo of David Drake

David Drake

  • 1 Post
  • 0 Reply Likes
  • hopeful

Posted 6 years ago

  • 1
Photo of John Celenza

John Celenza

  • 40 Posts
  • 21 Reply Likes
Hello,

This can be done in US locations using the query:
/api/KEY/history_20120101/q/NY/Syracuse.json

where 20120101 is the date
NY/Syracuse can be any location query (including lat,lon like 35.5,-121.5)

In the returned result look for "precipi", this is the past hour precipitation. That value is -9999 if the airport weather station is not experiencing precipitation or does not report the value. Otherwise the value is in inches.

Thanks,
John