This directory contains data for Goa Fire Department's GPS API data.
- Geojson: data/goa-fire-trucks.geojson
- API URL:
https://raw.githubusercontent.com/publicmap/goa-fire-trucks-geojson/refs/heads/main/data/goa-fire-trucks.geojson
We use GitHub Actions to:
- Fetch the API data every minute
- Save it to a cached JSON file in the repository
- Serve this file via GitHub Pages
- Configure our client to use the cached file instead of hitting the API directly
The actual implementation consists of:
- A GitHub Actions workflow (
.github/workflows/
) that runs every minute - A script to fetch and process the API data (
fetch-data.js
) - A cached data file that gets updated by the workflow (
data
)