Why alerts API does not return polygon #641
-
Hi, does anyone know why some alert item does not have 'geometry' field?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 14 replies
-
There are different types of alerts. This should help explain: https://www.weather.gov/media/documentation/docs/NWS_Geolocation.pdf |
Beta Was this translation helpful? Give feedback.
-
For alerts that do not contain an explicit polygon, you can use the geometries associated with the zone codes included in the alert. Those are found at /zones/{type}/{zoneID} Make sure you request geo+json. I keep a cache of these so I don't have to fetch every time. |
Beta Was this translation helpful? Give feedback.
For alerts that do not contain an explicit polygon, you can use the geometries associated with the zone codes included in the alert. Those are found at /zones/{type}/{zoneID}
Make sure you request geo+json.
I keep a cache of these so I don't have to fetch every time.