The semi-annual boundary cache refresh (last week of June/December) wipes
all ~342 cached municipality polygons, forcing a full re-fetch from the
rate-limited Overpass API. With 429/504 retries this pushed the generate
step past its 60-min timeout (killed at 264/342 on 2026-06-29).
- Raise generate step timeout 60->120 min and job timeout 120->180 min
- Commit data/municipality_polygon_cache.json so the refresh persists
instead of being recomputed and discarded every refresh-week run
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Uses navigator.geolocation (browser/Wi-Fi positioning) after the user
grants permission, then reverse-geocodes the coordinates via PDOK to
resolve the municipality so the existing dataset-switch flow works.
- New reverse mode on /api/geocode (lat+lon → address + gemeente)
- Distinct error messages for PERMISSION_DENIED, POSITION_UNAVAILABLE,
TIMEOUT, and unsupported browsers
- Skips dataset reload when the resolved municipality is already loaded
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Three modes under "Openingstijden": Alle, Nu open, Op tijdstip (day +
HH:MM). A checkbox controls whether points with missing/unparseable
hours are kept or hidden; the header shows how many were excluded so
disappearing results are explainable.
Filtering runs before the 500m/10-point cutoff so further-away open
points still surface when nearby ones are closed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Carrier hours are now normalised in the Python pipeline (DHL, DPD, GLS,
PostNL, ViaTim, InPost — covering 75% of all points), written into the
per-municipality GeoJSON, and rendered as a weekly table (or single line
where the source only exposes a free-text window) in both the simple and
detailed marker popups. Regenerated data for all 342 municipalities.
Also: drop the legacy Folium HTML viewer from main.py (Next.js webapp is
the only supported frontend), and capture GLS openingHours/vacations in
the upstream cache.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Remove email alert machinery from all workflows. When a carrier fetch
detects an anomaly (>20% drop), it simply preserves the existing cache
and logs a warning in the GitHub Actions step summary. The weekly cron
automatically retries next Monday. Commit messages note which carriers
used previous cache data with an asterisk.
No secrets required — works out of the box.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New shared utility (scripts/cache_guard.py) that all fetch scripts now
use. If a fetch returns >20% fewer locations than the existing cache,
the save is skipped and the process exits with code 2.
Changes:
- Add scripts/cache_guard.py with safe_save() function
- Integrate into all 7 fetch scripts (DHL, DPD, ViaTim, InPost,
Budbee, Amazon, GLS)
- Add email alerts to all 3 GitHub Actions workflows when anomalies
are detected (requires ALERT_EMAIL_USERNAME, ALERT_EMAIL_PASSWORD,
and ALERT_EMAIL_TO secrets)
- Workflows continue with preserved caches so batch generation still
runs with last-known-good data
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
GLS API (apm.gls.nl/glspoints/nearby) is returning 504 timeouts since
April 6. The old Playwright-based script silently wrote 0 locations to
cache, causing GLS to drop from 961 to 0 points.
- Rewrite gls_fetch_all.py to use direct API calls (no Playwright)
- Protect cache: never overwrite with 0 results
- Remove POC fallback from api_client.py
- Restore last good cache (961 locations from March 30)
- Simplify GitHub Actions workflow (no browser install needed)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>