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>
- ViaTim: 393 NL service points via public REST API (no auth)
- InPost: 934 operating PUDO/locker locations via EasyPack API (no auth)
- Budbee: 281 parcel lockers from DPD cache + OpenStreetMap
Backend:
- Add fetch scripts: viatim_fetch_all.py, inpost_fetch_all.py, budbee_fetch_all.py
- Add get_data_viatim(), get_data_inpost(), get_data_budbee() to api_client.py
- Wire into get_data_pakketpunten() pipeline
Frontend:
- Add provider colors, logos, and filter entries across all components
- Real brand logos: ViaTim (magenta VA monogram), InPost (yellow burst),
Budbee (green wordmark)
- Update type definitions, AboutModal data sources
CI/CD:
- Add fetch steps for ViaTim, InPost, Budbee to weekly update workflow
- Include new cache files in git commit step
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add GLS and FedEx data fetching scripts (Playwright-based)
- Add GLS and FedEx cache files for nationwide data
- Update api_client.py with GLS and FedEx support
- Add canPickup/canDropoff fields to all carriers
- Update webapp with service filters (Ophalen/Verzenden)
- Add visual indicators for pickup-only/dropoff-only locations
- Update GitHub workflow to fetch GLS/FedEx data
- Add GLS logo
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add Amazon Hub Lockers & Counters data (1,217 locations)
- Browser automation via Playwright to scrape amazon.nl/ulp
- Search by municipality name with autocomplete selection
- Cached in data/amazon_all_locations.json
- Implement persistent municipality polygon cache
- Cache stored in data/municipality_polygon_cache.json
- Time-based expiry: refreshes last week of June/December
- Eliminates Overpass API timeouts during batch processing
- All 342 municipalities pre-cached
- Update webapp About modal
- Add Amazon as data source
- Add academic paper link (CO2 impact of pickup points)
- Update carrier status to include Amazon
- Improve municipality selector
- Nederland now sticky at bottom of dropdown
- Always visible regardless of search filter
- Keyboard navigation includes Nederland option
- Regenerate all municipality GeoJSON files with Amazon data
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The update script was skipping nederland.geojson to avoid double-counting,
but this meant the Nederland row in the data matrix only had 2 weeks of
history. Now the script syncs the nederland municipality entry from the
snapshot totals on every run.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Added backfill script to extract historical data from git commits
- Populated 6 weeks of history (W47-W52)
- Fixed W52 data to match actual commit values
- Set minimum week to W47 (API improvements were made before this)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace git-based history extraction with a simpler append-only approach:
- New update_totals_history.py script appends weekly snapshots
- totals_history.json grows incrementally over time
- No more git history parsing needed for historical data
- Seeded with existing 2 weeks of data + current week
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add local SVG/PNG logos for all carriers (DHL, PostNL, DPD, Amazon, FedEx, VintedGo, De Buren)
- Update Map.tsx to use local logo paths instead of Clearbit API URLs
- Fixes 403 errors from Clearbit API blocking requests
- Update CLAUDE.md documentation
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add scripts/generate_history.py to extract historical data from git commits
- Generate history.json with weekly snapshots (from W47 onwards)
- Add trend indicators (visible on hover) to overview stats
- Add clickable municipality rows with history modal showing:
- Summary stats (current total, change since start)
- Interactive line chart with recharts
- Weekly data table with date ranges and differences
- Update GitHub Actions to generate history.json after data updates
- Fix AboutModal mobile clipping issue (reduce max-height)
- Mobile-responsive design for all new components
🤖 Generated with [Claude Code](https://claude.ai/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
The previous commit used the wrong output format (from main.py instead of
batch_generate.py), which was missing the metadata object that the webapp
requires.
Fixed by regenerating with batch_generate.py which includes:
- metadata.providers (required by webapp)
- metadata.total_points
- metadata.bounds
- All 433 pakketpunten including 145 DHL locations with city center coverage
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
All municipalities regenerated with the complete DHL cache that includes:
- 132 additional DHL locations nationwide (+3.2%)
- Proper coverage of dense city centers (Amsterdam, Rotterdam, Utrecht, etc.)
- Fixed grid subdivision capturing locations down to 100m radius
Affected municipalities include:
- Rotterdam: 87 → 145 DHL locations (+67%)
- Amsterdam: Updated with new city center locations
- Plus 15 other municipalities with refined DHL coverage
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
## Problem
Rotterdam (and other cities) were missing 59+ DHL locations in city centers
(Beursplein, Coolsingel, Blaak, Markthal, Lijnbaan, etc.)
## Root Causes Fixed
1. **GitHub Actions workflow bug** (.github/workflows/update-data.yml)
- Weekly workflow regenerated DHL cache but didn't commit it
- Next week's run used stale October 26 cache
- FIX: Added cache files to git commit step
2. **Grid subdivision minimum radius too large** (scripts/dhl_grid_fetch.py)
- Was 2km minimum, too large for dense city centers
- Dense areas hit 50-result API limit even at 2-5km radius
- FIX: Changed minimum to 100m for deeper subdivision
3. **CRITICAL: Subdivision coordinate bug** (scripts/dhl_grid_fetch.py)
- offset_km calculation treated meters as kilometers (5000m → 5000km!)
- Generated coordinates in Antarctica/Arctic (lat 82°, lon -44°)
- Subdivided cells were never processed properly
- FIX: Added division by 1000 to convert meters → km
## Results
- DHL cache: 4,115 → **4,247 locations** (+132, +3.2%)
- Rotterdam: 87 → **145 DHL locations** (+58, +67%)
- **All city center locations restored** ✓
## Technical Details
- Grid fetch now subdivides: 10km → 5km → 2.5km → 1.25km → 625m → 312m → 156m
- Stops at 100m minimum or when results < 50
- 814 total API calls (590 initial + 224 subdivisions)
- Cache size: 18.6 MB (4,247 locations)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Enhanced the REST API to accept 80+ alternative names and spellings for Dutch municipalities,
making it much more user-friendly for international and Dutch users alike.
Key Features:
- Alias mapping for common name variations (Den Haag, Den Bosch, The Hague, etc.)
- Support for official CBS names with apostrophes ('s-Gravenhage, 's-Hertogenbosch)
- Regional identifier variations (Bergen Noord-Holland, Hengelo (O), etc.)
- Fuzzy matching for typos and formatting differences
- 4-level matching strategy: slug → alias → CBS code → fuzzy
Supported Municipality Variations:
1. Den Haag / 's-Gravenhage (7 variations):
- 's-Gravenhage, s-Gravenhage, sgravenhage, Den Haag, Haag, The Hague
- Slug: den-haag | CBS: GM0518
2. 's-Hertogenbosch / Den Bosch (6 variations):
- 's-Hertogenbosch, shertogenbosch, Den Bosch, Bosch
- Slug: s-hertogenbosch | CBS: GM0796
3. Bergen (14 variations across 2 municipalities):
- Bergen (NH.): Bergen Noord-Holland, Bergen (NH), Bergen NH, etc.
- Bergen (L.): Bergen Limburg, Bergen (L), Bergen L, etc.
4. Regional Identifier Municipalities (36 variations):
- Hengelo: Hengelo (O), Hengelo Overijssel, Hengelo (Gld), Hengelo Gelderland
- Beek, Laren, Middelburg, Rijswijk, Stein (with/without region identifiers)
5. Special Cases (6 variations):
- Valkenburg aan de Geul: Valkenburg, Valkenburg (L)
- Nuenen: Nuenen Gerwen en Nederwetten
- Groningen/Utrecht: with/without "(gemeente)" suffix
Testing:
- All 23 test cases passed ✅
- Tested Den Haag, Den Bosch, Bergen variations, regional identifiers
- Verified CBS codes, slugs, fuzzy matching, English names
Updated OpenAPI Documentation:
- Added comprehensive examples for all variation types
- Documented fuzzy matching capabilities
- Added 8 example requests showing different identifier formats
Impact:
- API now accepts requests like: Den Bosch, 's-Gravenhage, The Hague, Bergen Limburg
- Reduces API errors from municipality name confusion
- Better international accessibility (English names supported)
- Handles common typos and formatting differences automatically
Files Modified:
- webapp/app/api/v1/municipality/[identifier]/route.ts
- Added MUNICIPALITY_ALIAS_MAPPING with 80+ aliases
- Enhanced findMunicipalityByIdentifier with 4-level matching
- Added fuzzy matching for special character variations
- webapp/public/openapi.yaml
- Expanded endpoint documentation with variation examples
- Added 8 request examples (was 3)
- Documented all supported name formats
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>