-
I have been looking through the API and found how to fetch what looks to be forecast data for a gridpoint. It returns something like 100 temperatures, none of which are current. Great data but I am looking for the current conditions for a location. I am using JavaScript and am relatively new to the language but have taken a bootcamp course in it and have other programming experiences. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
The endpoint you have specified is a forecast endpoint. It doesn't contain current conditions. Also, there will not be such data available for a random gridpoint because for most there isn't a reporting station that could provide the data. Current conditions for locations with reporting stations are available under stations/{stationId}/observations/latest |
Beta Was this translation helpful? Give feedback.
-
Look further at the data returned from the /point link in Michigan. It returns observationStations which is a link - request that URL and you get a list of all the observation stations for that office's coverage. Each station's data includes it's latitude and longitude so it's possible to figure out the closest station to any particular point. |
Beta Was this translation helpful? Give feedback.
The endpoint you have specified is a forecast endpoint. It doesn't contain current conditions. Also, there will not be such data available for a random gridpoint because for most there isn't a reporting station that could provide the data.
Current conditions for locations with reporting stations are available under stations/{stationId}/observations/latest