feat: synchronize regional official time series
GeoIntel CI / docs-smoke (push) Canceled after 0s
GeoIntel CI / contract-smoke (push) Canceled after 0s

This commit is contained in:
Codex
2026-07-14 22:19:30 +02:00
parent cfd13307e4
commit a5b4bbdf8f
14 changed files with 609 additions and 51 deletions
+13 -1
View File
@@ -11,6 +11,18 @@ const DATASET_LABEL_BY_LAYER: Record<string, string> = {
municipality_boundaries: 'Gemeentegrenzen Kempen',
}
const DATASET_SOURCE_LABELS: Record<string, string> = {
department_omgeving_land_use: 'Departement Omgeving',
grb: 'GRB',
statbel: 'Statbel',
vrbg: 'Digitaal Vlaanderen',
}
export function getDatasetSourceDisplayName(dataset: DatasetCreateResponse): string {
const source = (dataset.source_name ?? dataset.source).toLowerCase()
return DATASET_SOURCE_LABELS[source] ?? dataset.source_name ?? dataset.source
}
export function getDatasetDisplayName(dataset: DatasetCreateResponse): string {
const layer = (dataset.reference_layer_name ?? dataset.source_metadata?.layer_name ?? dataset.source_metadata?.layer_type ?? '')
.toString()
@@ -19,6 +31,6 @@ export function getDatasetDisplayName(dataset: DatasetCreateResponse): string {
if (!label) {
return dataset.name
}
const source = (dataset.source_name ?? dataset.source).toUpperCase()
const source = getDatasetSourceDisplayName(dataset)
return `${label} · ${source}`
}