Gist fdd290466b27483228fe90a7c3921f15
✓ Published0🌍 Public
TThomasG77
Last edited Dec 6, 2021
Created on Dec 6, 2021
This example downloads UK weather warning data from the Met Office’s live GeoJSON feed by scraping the page’s embedded `window.metoffice.warnings.geojson` variable with a shell script. It uses `curl` with the current date to fetch the JSON, then formats the output for further processing. The visualization itself is not shown in the provided code, but the script prepares geospatial alert polygons for subsequent rendering, likely with a mapping library such as D3’s `d3.geoPath` or Leaflet. The data source is the Met Office’s official warnings API, captured daily for time-series analysis.
AI-generated description