Commit Graph
6 Commits
Author SHA1 Message Date
robbertjanssen85andClaude Fable 5 a260dd0a6d data: regenerate with freight classification v2 and logistics metrics
Fresh NDW pull (64.5k locations); freight layer now 211 points
(27 dedicated / 184 truck-capable) with freightKind/freightReason,
derived connector power, and the new Logistiek choropleth metrics.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 01:08:54 +02:00
robbertjanssen85andClaude Fable 5 cbd4531574 Rework freight classification and fix analysis/webapp derivations
Freight classification v2: two-tier freightKind ('dedicated' via truck
operator, truck-named location (forklifts excluded), MCS, logistics depot
>=150 kW DC, or curated hub; 'hpc' for power-only >=350 kW DC) with
freightReason carried through to the map and detail panel. Connector power
is now derived from V x A when max_electric_power is missing or implausible
(caps out NDW garbage like 7.36 MW on a 22 kW AC post), eliminating all
zero-kW points. Adds Milence Waddinxveen to curated hubs and a
nearest-gemeente fallback so coastal/industrial sites get detail bundles.
Tariff matching now honors one-sided time windows.

Analysis: peak load finally uses the 150 kW freight constant (was priced at
11 kW), crop stats split by layer so freight no longer skews supply/price
metrics, occupancy is EVSE-weighted, charging_now samples one common hour,
and a new Logistiek metric group exports chargers_freight/freight_dedicated/
freight_power_kw. Relabels peer-model outputs as modelled supply.

Webapp: freight markers colored by kind with status ring, dedicated-only
filter, filter counts respect the power filter, status tallies scoped to
passenger, national-view detail panel can jump into the point's gemeente,
connector kW display mirrors the pipeline derivation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 01:08:54 +02:00
robbertjanssen85andClaude Opus 4.8 f2205cddd3 Don't auto-open the guided tour on first visit
Start in the regular map view; the tour stays reachable via the existing
"Uitleg" button in the top menu (and About → start tutorial on mobile).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 21:34:24 +02:00
robbertjanssen85andClaude Opus 4.8 22e54a57a5 Add current €/kWh prices per charger across the stack
NDW already publishes OCPI tariffs (embedded per connector); resolve the
cheapest currently-applicable ENERGY price and surface it everywhere:

- pipeline: tariff.ts resolveConnectorPrice() matches connector power +
  build-time (Europe/Amsterdam) against each element's restrictions, with
  a €0.05–5.0 sanity band. Baked onto EnrichedConnector.priceKwh and the
  location headline LightLocation.priceKwh (min across connectors) ->
  crop-out/national point properties. Preserved through freight merge.
- webapp: detail panel shows the resolved price (falls back to parsing the
  raw tariff); new "Kleur op prijs" filter colors points by €/kWh ramp with
  legend + hover price.
- analysis: chargers.py reads priceKwh from crop-outs -> price_kwh_median/
  _mean/_n + price_pct percentile -> "Prijs" choropleth metric + scorecard.
- regenerated data: ~40k locations priced (median ≈€0.39); all 342 gemeenten
  get a median price.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-07 21:24:18 +02:00
robbertjanssen85andClaude Opus 4.8 c67c014d91 Bump checkout/setup-node to v5 ahead of Node 20 deprecation
GitHub forces Node 24 on runners from 2026-06-16; v5 of both actions
runs on Node 24.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 07:48:58 +02:00
robbertjanssen85andClaude Opus 4.8 b2cee874dd Fix hourly snapshot CI failure: create .cache dir before download
createWriteStream does not create parent directories, so the snapshot
job failed with ENOENT on a fresh runner where data-pipeline/.cache/
does not exist. mkdir it before writing the downloaded gz.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 07:33:29 +02:00