Replies: 4 comments 2 replies
-
Some offices have more than one time zone within their county warning area so depending on what you are trying to do it may not always make sense to match the time zone to the office. I think any local time zone would have to be scraped from the productText field outside of using a location to timezone match. Generally for watch/warning and forecast text products the text header will be the local time zone of the affected area and not necessarily the local office, but there may be nuances for some products such as LSRs. |
Beta Was this translation helpful? Give feedback.
-
We'll add it if you get the house to pass the savings time bill approved by senate last March. =) |
Beta Was this translation helpful? Give feedback.
-
That makes total sense as it is consistent with what is contained within the zones data. |
Beta Was this translation helpful? Give feedback.
-
I came up with a kludgy workaround to get what I need for now.
Result below if anyone is interested... ABQ Albuquerque, NM America/Denver |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What I'm trying to do: When I pull the index of a particular product for a particular office, e.g.
https://api.weather.gov/products/types/LSR/locations/LOX
I'd like to display the issuanceTimes using the time zone of the office (in this case, Pacific Standard Time for Los Angeles). However, other than scraping the text of one of the products for a time zone hint ("PST"), I can't find the time zone of the office within the API.
https://api.weather.gov/offices/{officeID} does not have a time zone field. I can go into a responsible county/zone where there is a time zone field, but that doesn't work if an office is responsible for locations in multiple time zones and I pull a county/zone in a zone different from the office.
Each product itself has an issuanceTime both in the index and the product, but those all appear to be in GMT.
So... Am I totally missing something?? Any ideas if not? My thought is to just cook up my own data to reference to get office ID -> time zone.
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions