Does the station info change? If so, how often? #746
-
We show current weather (temperature and an icon) on some digital signs. The sign software has some built-in options but also some limitations so I want to make sure I understand the API FAQs before proceeding with a solution. I'd prefer not to have to create some middleware to repeatedly update the url if it's not necessary. Using New York as an example, loading this url gives me this station, "OKX/34,38". If I understand the FAQ correctly, I can't rely on "OKX/34,38" to remain the same for those coordinates? It says the point mappings won't change "very often" but it doesn't say how often. How long should that be good for? I also see OKX used here for NY, so I'm wondering if maybe I'm misunderstanding the FAQ and they won't change. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
OKX/34,38 is the forecast grid currently aligned with the lat,lon provided to points. It may not change for years, but the WFO or grid realignment could change the grid domain one day and the grid would either be for another location or error out. Simply verifying the geometry contains the lat,lon should provide peace of mind. |
Beta Was this translation helpful? Give feedback.
-
First, a correction. OKX/34,38 isn't a station. It's a forecast gridpoint, which is a 2.4 square km area. The second URL you list is forecast information for that area. So be clear that this isn't reported data. It's the forecast for that area. If you go back to that first URL, look at the return value observationStations. That URL refers to actual reporting stations near the lat/lon you supply. In this case: https://api.weather.gov/gridpoints/OKX/34,38/stations As far as the lat/lon to gridpoint mapping, my code caches it for a day. YMMV. |
Beta Was this translation helpful? Give feedback.
First, a correction. OKX/34,38 isn't a station. It's a forecast gridpoint, which is a 2.4 square km area. The second URL you list is forecast information for that area. So be clear that this isn't reported data. It's the forecast for that area.
If you go back to that first URL, look at the return value observationStations. That URL refers to actual reporting stations near the lat/lon you supply. In this case: https://api.weather.gov/gridpoints/OKX/34,38/stations
As far as the lat/lon to gridpoint mapping, my code caches it for a day. YMMV.