- data-pipeline: hourly NDW snapshot job (occupancy + status) + GitHub Action; per-gemeente day files, current-status, daily-average rollup. - webapp: usage-over-day chart in detail panel; fresh per-gemeente status colours; national analysis choropleth (LayerSwitcher) + gemeente scorecard with demand (peer-model), siting priority, congestion and live/potential net-impact scenario. - analysis/ (Python): golden dataset (CBS Kerncijfers + chargers) -> derived metrics + models (demand, siting, congestion, municipal percentiles). - UX: InfoTip tooltips throughout, expanded methodology modal, interactive guided tour (spotlight + blur) that drives the app to example screens. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
34 lines
733 B
TypeScript
34 lines
733 B
TypeScript
// Types for the analysis (golden-dataset) layers.
|
|
|
|
export interface MetricMeta {
|
|
key: string;
|
|
label: string;
|
|
unit: string;
|
|
decimals: number;
|
|
category?: string;
|
|
desc?: string;
|
|
}
|
|
|
|
export type AreaProps = Record<string, string | number | null | undefined> & {
|
|
code: string;
|
|
gemeente: string;
|
|
slug?: string;
|
|
};
|
|
|
|
export interface ChoroplethFeature {
|
|
type: "Feature";
|
|
geometry: { type: "Polygon" | "MultiPolygon"; coordinates: unknown };
|
|
properties: {
|
|
code: string;
|
|
gemeente: string;
|
|
slug?: string;
|
|
[metric: string]: string | number | null | undefined;
|
|
};
|
|
}
|
|
|
|
export interface ChoroplethData {
|
|
type: "FeatureCollection";
|
|
metadata: { metrics: MetricMeta[] };
|
|
features: ChoroplethFeature[];
|
|
}
|