It’s been a busy few weeks with the public beta of the new conditions endpoint, improvements to the forecast API, and recent enhancements to the global radar map layer. We’re continuing this trend with significant upgrades to our alerts endpoint by adding support for European alerts and alert polygons!
Alerts across Europe are now part of our alerts API. We have integrated weather warnings from Meteoalarm into the API and they are now available for all AerisWeather API users. European alerts will also be added to the alerts layer within the AerisWeather Mapping Platform in the coming weeks.
Accessing the new European alerts is as simple as querying the alerts endpoint for European locations:
Return active alerts for Paris, France:
1 |
/alerts/paris,france |
Or use the two-letter country abbreviation:
1 |
/alerts/paris,fr |
Queries can be made using latitude, longitude, which is perfect for mobile users:
1 |
/alerts/48.8566,2.3522 |
Alerts are now available for the following countries:
Austria - AT | France - FR | Luxembourg - LU | Serbia - RS |
Belgium - BE | Germany - DE | Malta - MT | Slovakia - SK |
Bosnia - BA | Greece - GR | Moldova - MD | Slovenia - SI |
Canada - CA | Hungary - HU | Montenegro - ME | Spain - ES |
Croatia - HR | Iceland - IS | Netherlands - NL | Sweden - SE |
Cyprus - CY | Ireland - IE | Norway - NO | Switzerland - CH |
Czechia - CZ | Israel - IL | Poland - PL | United Kingdom - UK |
Denmark - DK | Italy - IT | Portugal - PT | United States - US |
Estonia - EE | Latvia - LV | Republic of North Macedonia - MK | |
Finland - FI | Lithuania - LT | Romania - RO |
Within the United States and Canada, alerts are disseminated as warnings, watches, advisories, and statements. Per the NWS, these are described as follows:
However, European alerts are all issued as weather warnings with different severity levels: moderate, severe, and extreme/critical. According to MeteoAlarm:
New alert type codes are utilized for the European Alerts due to the differences in how European alerts are issued. These new alert codes are similar to:
AW.TS.MD, which stands for Moderate Thunderstorms.
The complete list of weather alert types and their associated codes are available within our alert types documentation.
Again, the European alerts are available for all AerisWeather API users!
An often requested feature has been the ability to return the polygon(s) for an alert via the alerts API output. This functionality is now available for the US, Canada, and Europe!
For example, to have the alerts API return the alert polygons, use the filter=geo query parameter.
1 |
/alerts/Minneapolis,mn?filter=geo |
The above will return any alerts for Minneapolis, MN, along with their associated polygons. The returned polygons will be a GeoJSON object, of either a polygon or a multi-polygon within the geoPoly attribute of the alerts API output.
To have the entire API result returned as GeoJson add the format=geojson parameter:
1 |
/alerts/Minneapolis,MN?filter=geo&format=geojson |
Alerts within Europe are issued for zones as defined by MeteoAlarm. Within Canada, warnings are issued for Canadian Location Codes (CLCs), as issued by Environment Canada. Within the US, alerts are issued for weather zones, counties/parishes (AKA FIPs), and fire zones.
Additionally, some US alerts contain small polygons rather than entire counties or zones. These are included when only a portion of the county or weather zone will be affected. They are most commonly included with short-fuse warnings, such as severe thunderstorm and tornado warnings. The alerts API will continue to return the small polygon with US alerts when applicable even without the filter=geo parameter.
When using filter=geo, the alerts API will return the small polygon when available. Otherwise, it will return the polygon(s) for the corresponding county, weather zone, or fire zone the alert is issued for.
The new enhanced polygon support is available for AerisWeather Premium users.
The size of the API response and bandwidth may significantly increase when requesting polygons within the alerts API output. In the US, the API response may be several hundred times in size, especially along coastlines and mountainous areas where polygons contain considerably more line segments and vertices. Due to the significant increase in API response size when requesting polygons, the API will limit the response to a maximum of 50 alerts per API query.
Another common request is for the ability to query alerts by an observation station ID, such as an Airport Code, ICAO, or even a Personal Weather Station ID. With this update, the alerts API now supports this capability.
To query alerts for the Minneapolis-St Paul International Airport (KMSP)
1 |
/alerts/KMSP |
Or to query by PWSweather station ID:
1 |
/alerts/PWS_KMNBLOOM7 |
Furthermore, this improvement means you can query alerts by any of our supported place formats!
We have made some significant upgrades to the Alerts API, with European alerts and improved querying capabilities for all AerisWeather API users. Alert polygon support available for AerisWeather API Premium users. Not currently a user? Then check out our free developer trial.
Check out the improved alerts and tell us how you are using it!
No comments yet.
Be the first to respond to this article.