@mailwoman/corpus 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/licenses/cdla-permissive-2.0.md +1 -1
- package/lib/adapters/cordis/adapter.ts +13 -7
- package/lib/adapters/dedup-key.ts +1 -1
- package/lib/adapters/geonames/adapter.ts +1 -1
- package/lib/adapters/gleif/adapter.ts +17 -16
- package/lib/adapters/libpostal-dictionary.ts +0 -2
- package/lib/adapters/openaddresses/adapter.ts +4 -3
- package/lib/adapters/osm/adapter.ts +22 -21
- package/lib/adapters/po-box/adapter.ts +10 -5
- package/lib/adapters/registry.ts +4 -4
- package/lib/adapters/source-id.ts +2 -2
- package/lib/adapters/street-line.ts +7 -6
- package/lib/adapters/wof/admin/json/adapter.ts +2 -2
- package/lib/adapters/wof/json-rows.ts +2 -1
- package/lib/adapters/wof/postalcode-json/adapter.ts +6 -2
- package/lib/adapters.ts +5 -5
- package/lib/au/adapters/gnaf/adapter.ts +1 -1
- package/lib/be/adapters/brussels/adapter.ts +22 -22
- package/lib/be/adapters/vlaanderen/adapter.ts +54 -57
- package/lib/be/adapters/wallonie/adapter.ts +17 -17
- package/lib/be/tools/fetch/brussels.ts +13 -10
- package/lib/be/tools/fetch/wallonie.ts +8 -7
- package/lib/build/adapters.ts +2 -1
- package/lib/build/align.ts +5 -4
- package/lib/build/checkpoint.ts +5 -3
- package/lib/build/eligibility.ts +3 -3
- package/lib/build/types.ts +8 -6
- package/lib/cz/adapters/cuzk/adapter.ts +41 -38
- package/lib/cz/tools/fetch/cuzk.ts +42 -31
- package/lib/de/recipes/locale.ts +1 -1
- package/lib/dk/adapters/inspire/adapter.ts +38 -38
- package/lib/dk/tools/fetch/inspire.ts +16 -14
- package/lib/ee/adapters/ads/adapter.ts +26 -32
- package/lib/ee/tools/fetch/ads.ts +10 -8
- package/lib/es/adapters/bizkaia/adapter.ts +47 -47
- package/lib/es/adapters/catastro/adapter.ts +36 -34
- package/lib/es/adapters/gipuzkoa/adapter.ts +38 -45
- package/lib/es/adapters/navarra/adapter.ts +28 -27
- package/lib/es/cadastre.ts +31 -31
- package/lib/es/tools/fetch/bizkaia.ts +40 -36
- package/lib/es/tools/fetch/catastro.ts +51 -40
- package/lib/es/tools/fetch/gipuzkoa.ts +13 -11
- package/lib/es/tools/fetch/navarra.ts +33 -25
- package/lib/fi/adapters/ryhti/adapter.ts +22 -26
- package/lib/fi/tools/fetch/ryhti.ts +31 -31
- package/lib/fr/adapters/annuaire-education/adapter.ts +13 -11
- package/lib/fr/adapters/ban/adapter.ts +6 -6
- package/lib/fr/adapters/finess/adapter.ts +16 -15
- package/lib/fr/adapters/finess/voie-type.ts +4 -3
- package/lib/fr/insee-country.ts +2 -2
- package/lib/fr/recipes/lieudit.ts +8 -6
- package/lib/fr/tools/fetch/annuaire-education.ts +11 -8
- package/lib/fr/tools/fetch/ban.ts +3 -2
- package/lib/fr/tools/fetch/finess.ts +14 -13
- package/lib/inspire/address.ts +86 -78
- package/lib/inspire/errors.ts +9 -8
- package/lib/inspire/stream.ts +29 -26
- package/lib/international/recipes/locale.ts +13 -9
- package/lib/it/adapters/anac/adapter.ts +51 -46
- package/lib/it/tools/fetch/anac.ts +22 -25
- package/lib/jp/adapters/wof-admin/adapter.ts +2 -6
- package/lib/jp/tools/fetch/houjin.ts +3 -3
- package/lib/kr/adapters/localdata/permit-rows.ts +1 -1
- package/lib/kr/tools/fetch/juso.ts +1 -1
- package/lib/kr/tools/fetch/localdata.ts +2 -2
- package/lib/lu/adapters/bd-adresses/adapter.ts +10 -10
- package/lib/lu/tools/fetch/bd-adresses.ts +15 -13
- package/lib/lv/adapters/varis/adapter.ts +24 -23
- package/lib/lv/tools/fetch/varis.ts +3 -2
- package/lib/nl/adapters/kadaster/adapter.ts +29 -29
- package/lib/nl/tools/fetch/kadaster.ts +16 -12
- package/lib/no/adapters/matrikkelen/adapter.ts +6 -5
- package/lib/no/tools/fetch/matrikkelen.ts +59 -47
- package/lib/parquet/duckdb.ts +7 -4
- package/lib/parquet/readers.ts +3 -3
- package/lib/parquet/schema.ts +1 -1
- package/lib/parquet/writers.ts +3 -2
- package/lib/pl/adapters/emuia/adapter.ts +12 -12
- package/lib/pl/tools/fetch/emuia.ts +10 -9
- package/lib/recipes/bare/postcode.ts +1 -1
- package/lib/recipes/boundary-stress.ts +1 -1
- package/lib/recipes/house-venue.ts +7 -3
- package/lib/recipes/intersection.ts +2 -2
- package/lib/recipes/po/box/cedex/recipe.ts +3 -3
- package/lib/recipes/po/box/cedex/sources.ts +13 -1
- package/lib/recipes/scaffold.ts +31 -21
- package/lib/recipes/sources.ts +16 -3
- package/lib/recipes/street/bare.ts +2 -2
- package/lib/recipes/street.ts +3 -1
- package/lib/recipes/sub/venue/context.ts +2 -0
- package/lib/recipes/sub/venue/render.ts +1 -1
- package/lib/recipes/sub/venue/sources.ts +24 -29
- package/lib/recipes/sub/venue.ts +12 -18
- package/lib/recipes/trailing-region.ts +6 -2
- package/lib/recipes/unit.ts +3 -3
- package/lib/recipes/venue.ts +347 -0
- package/lib/recipes.ts +4 -2
- package/lib/registers.ts +8 -6
- package/lib/ro/adapters/retea-scolara/adapter.ts +5 -5
- package/lib/ro/tools/fetch/retea-scolara.ts +1 -1
- package/lib/runner.ts +4 -3
- package/lib/sg/recipes/register.ts +1 -1
- package/lib/sg/tools/fetch/acra.ts +3 -3
- package/lib/sk/adapters/inspire/adapter.ts +25 -27
- package/lib/sk/tools/fetch/inspire.ts +15 -14
- package/lib/source-register/effective-manifest.ts +3 -3
- package/lib/source-register/register.ts +3 -3
- package/lib/source-register/training-manifest.ts +1 -1
- package/lib/source-register/types.ts +12 -13
- package/lib/subvenue/promotions.ts +1 -1
- package/lib/subvenue/table.ts +4 -4
- package/lib/surfaces/locale.ts +2 -0
- package/lib/synthesizers/anchor-absorption.ts +2 -1
- package/lib/synthesizers/boundary-stress.ts +20 -26
- package/lib/synthesizers/house-venue.ts +26 -30
- package/lib/synthesizers/no-street.ts +2 -1
- package/lib/synthesizers/po-box.ts +6 -3
- package/lib/synthesizers/tail.ts +55 -0
- package/lib/synthesizers/utils.ts +19 -2
- package/lib/test-kit.ts +2 -2
- package/lib/tools/audit.ts +7 -5
- package/lib/tools/corpus-stats.ts +1 -1
- package/lib/tools/fetch/atom.ts +10 -10
- package/lib/tools/fetch/cordis.ts +11 -9
- package/lib/tools/fetch/download/manifest.ts +2 -1
- package/lib/tools/fetch/download/network.ts +4 -4
- package/lib/tools/fetch/download/retry.ts +4 -4
- package/lib/tools/fetch/geonames/dump.ts +5 -3
- package/lib/tools/fetch/geonames/postal.ts +2 -2
- package/lib/tools/fetch/gleif.ts +6 -4
- package/lib/tools/fetch/header.ts +8 -6
- package/lib/tools/fetch/inspire-addresses.ts +41 -36
- package/lib/tools/fetch/openaddresses.ts +1 -1
- package/lib/tools/fetch/vlaanderen-ad.ts +17 -17
- package/lib/tools/fetch/wfs-harvest.ts +39 -28
- package/lib/tools/fetch.ts +0 -42
- package/lib/tools/golden/expand.ts +8 -8
- package/lib/tools/golden/promote.ts +12 -8
- package/lib/tools/golden/relabel-street/directory.ts +7 -6
- package/lib/tools/golden/relabel-street/row.ts +7 -6
- package/lib/tools/ingest-csv.ts +3 -3
- package/lib/tools/jsonl-to-parquet.ts +1 -1
- package/lib/tools/lint/recipe-output/vocab.ts +10 -5
- package/lib/tools/lint/recipe-output.ts +26 -8
- package/lib/tools/overlay/kryptonite.ts +4 -3
- package/lib/tools/overlay/manifest.ts +4 -2
- package/lib/tools/overlay/merge-source.ts +2 -1
- package/lib/tools/overlay/split-slice.ts +2 -2
- package/lib/tools/overlay/translit.ts +6 -4
- package/lib/tools/overture-subvenue.ts +1 -1
- package/lib/tools/postcode-triples.ts +5 -4
- package/lib/tools/source-register/build.ts +17 -14
- package/lib/tools/sub/venue/lexicon.ts +4 -8
- package/lib/tw/tools/fetch/gcis.ts +4 -4
- package/lib/types.ts +4 -3
- package/lib/us/adapters/state/hi-schools/workbook.ts +1 -1
- package/lib/us/adapters/usgov/nad/adapter.ts +11 -11
- package/lib/us/adapters/usgov/samhsa-treatment-locator/adapter.ts +4 -4
- package/lib/us/fips-state.ts +2 -2
- package/lib/{synthesizers → us/synthesizers}/intersection.ts +12 -13
- package/lib/{synthesizers → us/synthesizers}/street.ts +16 -15
- package/lib/us/tools/fetch/imls-pls.ts +1 -1
- package/lib/us/tools/fetch/nad.ts +7 -7
- package/lib/us/tools/fetch/nppes.ts +5 -5
- package/lib/us/tools/fetch/state/hi-schools.ts +3 -2
- package/lib/us/tools/fetch/tiger-full.ts +1 -1
- package/lib/utils/align.ts +13 -10
- package/lib/utils/golden.ts +2 -2
- package/lib/utils/license.ts +3 -3
- package/lib/utils/split.ts +19 -15
- package/lib/utils/tokenize.ts +7 -26
- package/lib/utils/wof-json.ts +4 -4
- package/out/adapters/cordis/adapter.d.ts +5 -3
- package/out/adapters/cordis/adapter.d.ts.map +1 -1
- package/out/adapters/cordis/adapter.js +13 -7
- package/out/adapters/cordis/adapter.js.map +1 -1
- package/out/adapters/dedup-key.d.ts +1 -1
- package/out/adapters/dedup-key.js +1 -1
- package/out/adapters/geonames/adapter.js +1 -1
- package/out/adapters/geonames/adapter.js.map +1 -1
- package/out/adapters/gleif/adapter.d.ts +9 -9
- package/out/adapters/gleif/adapter.d.ts.map +1 -1
- package/out/adapters/gleif/adapter.js +15 -14
- package/out/adapters/gleif/adapter.js.map +1 -1
- package/out/adapters/libpostal-dictionary.d.ts +0 -2
- package/out/adapters/libpostal-dictionary.d.ts.map +1 -1
- package/out/adapters/libpostal-dictionary.js +0 -2
- package/out/adapters/libpostal-dictionary.js.map +1 -1
- package/out/adapters/openaddresses/adapter.d.ts +3 -2
- package/out/adapters/openaddresses/adapter.d.ts.map +1 -1
- package/out/adapters/openaddresses/adapter.js +1 -1
- package/out/adapters/openaddresses/adapter.js.map +1 -1
- package/out/adapters/osm/adapter.d.ts +17 -16
- package/out/adapters/osm/adapter.d.ts.map +1 -1
- package/out/adapters/osm/adapter.js +10 -9
- package/out/adapters/osm/adapter.js.map +1 -1
- package/out/adapters/po-box/adapter.d.ts +6 -3
- package/out/adapters/po-box/adapter.d.ts.map +1 -1
- package/out/adapters/po-box/adapter.js +4 -2
- package/out/adapters/po-box/adapter.js.map +1 -1
- package/out/adapters/registry.d.ts +3 -3
- package/out/adapters/registry.d.ts.map +1 -1
- package/out/adapters/registry.js +1 -1
- package/out/adapters/registry.js.map +1 -1
- package/out/adapters/source-id.d.ts +2 -2
- package/out/adapters/source-id.js +2 -2
- package/out/adapters/street-line.d.ts +7 -6
- package/out/adapters/street-line.d.ts.map +1 -1
- package/out/adapters/street-line.js +7 -6
- package/out/adapters/street-line.js.map +1 -1
- package/out/adapters/wof/admin/json/adapter.js +1 -1
- package/out/adapters/wof/admin/json/adapter.js.map +1 -1
- package/out/adapters/wof/json-rows.d.ts +2 -1
- package/out/adapters/wof/json-rows.d.ts.map +1 -1
- package/out/adapters/wof/json-rows.js.map +1 -1
- package/out/adapters/wof/postalcode-json/adapter.d.ts.map +1 -1
- package/out/adapters/wof/postalcode-json/adapter.js +5 -1
- package/out/adapters/wof/postalcode-json/adapter.js.map +1 -1
- package/out/adapters.d.ts +5 -5
- package/out/adapters.js +5 -5
- package/out/au/adapters/gnaf/adapter.js +1 -1
- package/out/au/adapters/gnaf/adapter.js.map +1 -1
- package/out/be/adapters/brussels/adapter.d.ts +9 -9
- package/out/be/adapters/brussels/adapter.d.ts.map +1 -1
- package/out/be/adapters/brussels/adapter.js +21 -21
- package/out/be/adapters/brussels/adapter.js.map +1 -1
- package/out/be/adapters/vlaanderen/adapter.d.ts +34 -37
- package/out/be/adapters/vlaanderen/adapter.d.ts.map +1 -1
- package/out/be/adapters/vlaanderen/adapter.js +40 -38
- package/out/be/adapters/vlaanderen/adapter.js.map +1 -1
- package/out/be/adapters/wallonie/adapter.d.ts +2 -2
- package/out/be/adapters/wallonie/adapter.js +17 -17
- package/out/be/adapters/wallonie/adapter.js.map +1 -1
- package/out/be/tools/fetch/brussels.d.ts +11 -8
- package/out/be/tools/fetch/brussels.d.ts.map +1 -1
- package/out/be/tools/fetch/brussels.js +10 -8
- package/out/be/tools/fetch/brussels.js.map +1 -1
- package/out/be/tools/fetch/wallonie.d.ts +6 -5
- package/out/be/tools/fetch/wallonie.d.ts.map +1 -1
- package/out/be/tools/fetch/wallonie.js +4 -4
- package/out/be/tools/fetch/wallonie.js.map +1 -1
- package/out/build/adapters.d.ts.map +1 -1
- package/out/build/adapters.js +2 -1
- package/out/build/adapters.js.map +1 -1
- package/out/build/align.d.ts +3 -2
- package/out/build/align.d.ts.map +1 -1
- package/out/build/align.js +2 -2
- package/out/build/align.js.map +1 -1
- package/out/build/checkpoint.d.ts +1 -1
- package/out/build/checkpoint.d.ts.map +1 -1
- package/out/build/checkpoint.js +4 -2
- package/out/build/checkpoint.js.map +1 -1
- package/out/build/eligibility.d.ts +2 -2
- package/out/build/eligibility.js +3 -3
- package/out/build/eligibility.js.map +1 -1
- package/out/build/types.d.ts +8 -6
- package/out/build/types.d.ts.map +1 -1
- package/out/cz/adapters/cuzk/adapter.d.ts +14 -14
- package/out/cz/adapters/cuzk/adapter.d.ts.map +1 -1
- package/out/cz/adapters/cuzk/adapter.js +38 -35
- package/out/cz/adapters/cuzk/adapter.js.map +1 -1
- package/out/cz/tools/fetch/cuzk.d.ts +31 -22
- package/out/cz/tools/fetch/cuzk.d.ts.map +1 -1
- package/out/cz/tools/fetch/cuzk.js +21 -19
- package/out/cz/tools/fetch/cuzk.js.map +1 -1
- package/out/de/recipes/locale.js +1 -1
- package/out/de/recipes/locale.js.map +1 -1
- package/out/dk/adapters/inspire/adapter.d.ts +32 -33
- package/out/dk/adapters/inspire/adapter.d.ts.map +1 -1
- package/out/dk/adapters/inspire/adapter.js +38 -38
- package/out/dk/adapters/inspire/adapter.js.map +1 -1
- package/out/dk/tools/fetch/inspire.d.ts +6 -5
- package/out/dk/tools/fetch/inspire.d.ts.map +1 -1
- package/out/dk/tools/fetch/inspire.js +15 -13
- package/out/dk/tools/fetch/inspire.js.map +1 -1
- package/out/ee/adapters/ads/adapter.d.ts +19 -26
- package/out/ee/adapters/ads/adapter.d.ts.map +1 -1
- package/out/ee/adapters/ads/adapter.js +22 -28
- package/out/ee/adapters/ads/adapter.js.map +1 -1
- package/out/ee/tools/fetch/ads.d.ts +3 -3
- package/out/ee/tools/fetch/ads.d.ts.map +1 -1
- package/out/ee/tools/fetch/ads.js +10 -8
- package/out/ee/tools/fetch/ads.js.map +1 -1
- package/out/es/adapters/bizkaia/adapter.d.ts +28 -28
- package/out/es/adapters/bizkaia/adapter.d.ts.map +1 -1
- package/out/es/adapters/bizkaia/adapter.js +43 -43
- package/out/es/adapters/bizkaia/adapter.js.map +1 -1
- package/out/es/adapters/catastro/adapter.d.ts +22 -23
- package/out/es/adapters/catastro/adapter.d.ts.map +1 -1
- package/out/es/adapters/catastro/adapter.js +35 -33
- package/out/es/adapters/catastro/adapter.js.map +1 -1
- package/out/es/adapters/gipuzkoa/adapter.d.ts +31 -38
- package/out/es/adapters/gipuzkoa/adapter.d.ts.map +1 -1
- package/out/es/adapters/gipuzkoa/adapter.js +40 -47
- package/out/es/adapters/gipuzkoa/adapter.js.map +1 -1
- package/out/es/adapters/navarra/adapter.d.ts +20 -19
- package/out/es/adapters/navarra/adapter.d.ts.map +1 -1
- package/out/es/adapters/navarra/adapter.js +23 -22
- package/out/es/adapters/navarra/adapter.js.map +1 -1
- package/out/es/cadastre.d.ts +21 -20
- package/out/es/cadastre.d.ts.map +1 -1
- package/out/es/cadastre.js +19 -21
- package/out/es/cadastre.js.map +1 -1
- package/out/es/tools/fetch/bizkaia.d.ts +28 -25
- package/out/es/tools/fetch/bizkaia.d.ts.map +1 -1
- package/out/es/tools/fetch/bizkaia.js +25 -24
- package/out/es/tools/fetch/bizkaia.js.map +1 -1
- package/out/es/tools/fetch/catastro.d.ts +28 -20
- package/out/es/tools/fetch/catastro.d.ts.map +1 -1
- package/out/es/tools/fetch/catastro.js +36 -31
- package/out/es/tools/fetch/catastro.js.map +1 -1
- package/out/es/tools/fetch/gipuzkoa.d.ts +11 -9
- package/out/es/tools/fetch/gipuzkoa.d.ts.map +1 -1
- package/out/es/tools/fetch/gipuzkoa.js +9 -8
- package/out/es/tools/fetch/gipuzkoa.js.map +1 -1
- package/out/es/tools/fetch/navarra.d.ts +20 -15
- package/out/es/tools/fetch/navarra.d.ts.map +1 -1
- package/out/es/tools/fetch/navarra.js +21 -16
- package/out/es/tools/fetch/navarra.js.map +1 -1
- package/out/fi/adapters/ryhti/adapter.d.ts +16 -20
- package/out/fi/adapters/ryhti/adapter.d.ts.map +1 -1
- package/out/fi/adapters/ryhti/adapter.js +21 -25
- package/out/fi/adapters/ryhti/adapter.js.map +1 -1
- package/out/fi/tools/fetch/ryhti.d.ts +24 -24
- package/out/fi/tools/fetch/ryhti.d.ts.map +1 -1
- package/out/fi/tools/fetch/ryhti.js +21 -24
- package/out/fi/tools/fetch/ryhti.js.map +1 -1
- package/out/fr/adapters/annuaire-education/adapter.d.ts +8 -8
- package/out/fr/adapters/annuaire-education/adapter.d.ts.map +1 -1
- package/out/fr/adapters/annuaire-education/adapter.js +13 -11
- package/out/fr/adapters/annuaire-education/adapter.js.map +1 -1
- package/out/fr/adapters/ban/adapter.d.ts +4 -4
- package/out/fr/adapters/ban/adapter.js +6 -6
- package/out/fr/adapters/ban/adapter.js.map +1 -1
- package/out/fr/adapters/finess/adapter.d.ts +12 -11
- package/out/fr/adapters/finess/adapter.d.ts.map +1 -1
- package/out/fr/adapters/finess/adapter.js +16 -15
- package/out/fr/adapters/finess/adapter.js.map +1 -1
- package/out/fr/adapters/finess/voie-type.d.ts +2 -2
- package/out/fr/adapters/finess/voie-type.d.ts.map +1 -1
- package/out/fr/adapters/finess/voie-type.js +4 -3
- package/out/fr/adapters/finess/voie-type.js.map +1 -1
- package/out/fr/insee-country.d.ts +2 -2
- package/out/fr/insee-country.js +2 -2
- package/out/fr/recipes/lieudit.d.ts.map +1 -1
- package/out/fr/recipes/lieudit.js +5 -4
- package/out/fr/recipes/lieudit.js.map +1 -1
- package/out/fr/tools/fetch/annuaire-education.d.ts +7 -4
- package/out/fr/tools/fetch/annuaire-education.d.ts.map +1 -1
- package/out/fr/tools/fetch/annuaire-education.js +9 -7
- package/out/fr/tools/fetch/annuaire-education.js.map +1 -1
- package/out/fr/tools/fetch/ban.d.ts +1 -1
- package/out/fr/tools/fetch/ban.d.ts.map +1 -1
- package/out/fr/tools/fetch/ban.js +3 -2
- package/out/fr/tools/fetch/ban.js.map +1 -1
- package/out/fr/tools/fetch/finess.d.ts +5 -5
- package/out/fr/tools/fetch/finess.d.ts.map +1 -1
- package/out/fr/tools/fetch/finess.js +13 -12
- package/out/fr/tools/fetch/finess.js.map +1 -1
- package/out/inspire/address.d.ts +62 -52
- package/out/inspire/address.d.ts.map +1 -1
- package/out/inspire/address.js +71 -60
- package/out/inspire/address.js.map +1 -1
- package/out/inspire/errors.d.ts +9 -8
- package/out/inspire/errors.d.ts.map +1 -1
- package/out/inspire/errors.js +7 -6
- package/out/inspire/errors.js.map +1 -1
- package/out/inspire/stream.d.ts +25 -22
- package/out/inspire/stream.d.ts.map +1 -1
- package/out/inspire/stream.js +10 -12
- package/out/inspire/stream.js.map +1 -1
- package/out/international/recipes/locale.d.ts +2 -2
- package/out/international/recipes/locale.d.ts.map +1 -1
- package/out/international/recipes/locale.js +11 -7
- package/out/international/recipes/locale.js.map +1 -1
- package/out/it/adapters/anac/adapter.d.ts +45 -43
- package/out/it/adapters/anac/adapter.d.ts.map +1 -1
- package/out/it/adapters/anac/adapter.js +48 -43
- package/out/it/adapters/anac/adapter.js.map +1 -1
- package/out/it/tools/fetch/anac.d.ts +16 -19
- package/out/it/tools/fetch/anac.d.ts.map +1 -1
- package/out/it/tools/fetch/anac.js +20 -23
- package/out/it/tools/fetch/anac.js.map +1 -1
- package/out/jp/adapters/wof-admin/adapter.d.ts.map +1 -1
- package/out/jp/adapters/wof-admin/adapter.js.map +1 -1
- package/out/jp/tools/fetch/houjin.js +2 -2
- package/out/jp/tools/fetch/houjin.js.map +1 -1
- package/out/kr/adapters/localdata/permit-rows.js +1 -1
- package/out/kr/adapters/localdata/permit-rows.js.map +1 -1
- package/out/kr/tools/fetch/juso.d.ts +1 -1
- package/out/kr/tools/fetch/localdata.d.ts +1 -1
- package/out/kr/tools/fetch/localdata.js +1 -1
- package/out/kr/tools/fetch/localdata.js.map +1 -1
- package/out/lu/adapters/bd-adresses/adapter.d.ts +9 -9
- package/out/lu/adapters/bd-adresses/adapter.js +10 -10
- package/out/lu/tools/fetch/bd-adresses.d.ts +11 -9
- package/out/lu/tools/fetch/bd-adresses.d.ts.map +1 -1
- package/out/lu/tools/fetch/bd-adresses.js +11 -11
- package/out/lu/tools/fetch/bd-adresses.js.map +1 -1
- package/out/lv/adapters/varis/adapter.d.ts +24 -23
- package/out/lv/adapters/varis/adapter.d.ts.map +1 -1
- package/out/lv/adapters/varis/adapter.js +24 -23
- package/out/lv/adapters/varis/adapter.js.map +1 -1
- package/out/lv/tools/fetch/varis.d.ts +2 -1
- package/out/lv/tools/fetch/varis.d.ts.map +1 -1
- package/out/lv/tools/fetch/varis.js +1 -1
- package/out/lv/tools/fetch/varis.js.map +1 -1
- package/out/nl/adapters/kadaster/adapter.d.ts +12 -12
- package/out/nl/adapters/kadaster/adapter.d.ts.map +1 -1
- package/out/nl/adapters/kadaster/adapter.js +22 -23
- package/out/nl/adapters/kadaster/adapter.js.map +1 -1
- package/out/nl/tools/fetch/kadaster.d.ts +14 -10
- package/out/nl/tools/fetch/kadaster.d.ts.map +1 -1
- package/out/nl/tools/fetch/kadaster.js +12 -9
- package/out/nl/tools/fetch/kadaster.js.map +1 -1
- package/out/no/adapters/matrikkelen/adapter.d.ts +1 -1
- package/out/no/adapters/matrikkelen/adapter.d.ts.map +1 -1
- package/out/no/adapters/matrikkelen/adapter.js +3 -3
- package/out/no/adapters/matrikkelen/adapter.js.map +1 -1
- package/out/no/tools/fetch/matrikkelen.d.ts +50 -38
- package/out/no/tools/fetch/matrikkelen.d.ts.map +1 -1
- package/out/no/tools/fetch/matrikkelen.js +44 -36
- package/out/no/tools/fetch/matrikkelen.js.map +1 -1
- package/out/parquet/duckdb.d.ts +7 -4
- package/out/parquet/duckdb.d.ts.map +1 -1
- package/out/parquet/duckdb.js +2 -1
- package/out/parquet/duckdb.js.map +1 -1
- package/out/parquet/readers.js +3 -3
- package/out/parquet/readers.js.map +1 -1
- package/out/parquet/schema.js +1 -1
- package/out/parquet/schema.js.map +1 -1
- package/out/parquet/writers.d.ts +1 -1
- package/out/parquet/writers.d.ts.map +1 -1
- package/out/parquet/writers.js +2 -1
- package/out/parquet/writers.js.map +1 -1
- package/out/pl/adapters/emuia/adapter.d.ts +8 -8
- package/out/pl/adapters/emuia/adapter.js +12 -12
- package/out/pl/adapters/emuia/adapter.js.map +1 -1
- package/out/pl/tools/fetch/emuia.d.ts +5 -4
- package/out/pl/tools/fetch/emuia.d.ts.map +1 -1
- package/out/pl/tools/fetch/emuia.js +10 -9
- package/out/pl/tools/fetch/emuia.js.map +1 -1
- package/out/recipes/bare/postcode.js +1 -1
- package/out/recipes/bare/postcode.js.map +1 -1
- package/out/recipes/boundary-stress.js +1 -1
- package/out/recipes/boundary-stress.js.map +1 -1
- package/out/recipes/house-venue.d.ts.map +1 -1
- package/out/recipes/house-venue.js +6 -3
- package/out/recipes/house-venue.js.map +1 -1
- package/out/recipes/intersection.js +2 -2
- package/out/recipes/intersection.js.map +1 -1
- package/out/recipes/po/box/cedex/recipe.js +2 -1
- package/out/recipes/po/box/cedex/recipe.js.map +1 -1
- package/out/recipes/po/box/cedex/sources.d.ts +8 -2
- package/out/recipes/po/box/cedex/sources.d.ts.map +1 -1
- package/out/recipes/po/box/cedex/sources.js +1 -1
- package/out/recipes/po/box/cedex/sources.js.map +1 -1
- package/out/recipes/scaffold.d.ts +28 -19
- package/out/recipes/scaffold.d.ts.map +1 -1
- package/out/recipes/scaffold.js +3 -2
- package/out/recipes/scaffold.js.map +1 -1
- package/out/recipes/sources.d.ts +1 -1
- package/out/recipes/sources.d.ts.map +1 -1
- package/out/recipes/sources.js +15 -2
- package/out/recipes/sources.js.map +1 -1
- package/out/recipes/street/bare.js +2 -2
- package/out/recipes/street/bare.js.map +1 -1
- package/out/recipes/street.d.ts.map +1 -1
- package/out/recipes/street.js +3 -1
- package/out/recipes/street.js.map +1 -1
- package/out/recipes/sub/venue/context.d.ts.map +1 -1
- package/out/recipes/sub/venue/context.js +2 -0
- package/out/recipes/sub/venue/context.js.map +1 -1
- package/out/recipes/sub/venue/render.js +1 -1
- package/out/recipes/sub/venue/render.js.map +1 -1
- package/out/recipes/sub/venue/sources.d.ts +6 -3
- package/out/recipes/sub/venue/sources.d.ts.map +1 -1
- package/out/recipes/sub/venue/sources.js +16 -20
- package/out/recipes/sub/venue/sources.js.map +1 -1
- package/out/recipes/sub/venue.d.ts +2 -5
- package/out/recipes/sub/venue.d.ts.map +1 -1
- package/out/recipes/sub/venue.js +10 -14
- package/out/recipes/sub/venue.js.map +1 -1
- package/out/recipes/trailing-region.d.ts.map +1 -1
- package/out/recipes/trailing-region.js +6 -1
- package/out/recipes/trailing-region.js.map +1 -1
- package/out/recipes/unit.js +2 -2
- package/out/recipes/unit.js.map +1 -1
- package/out/recipes/venue.d.ts +119 -0
- package/out/recipes/venue.d.ts.map +1 -0
- package/out/recipes/venue.js +245 -0
- package/out/recipes/venue.js.map +1 -0
- package/out/recipes.d.ts +1 -1
- package/out/recipes.d.ts.map +1 -1
- package/out/recipes.js +3 -1
- package/out/recipes.js.map +1 -1
- package/out/registers.d.ts +8 -6
- package/out/registers.d.ts.map +1 -1
- package/out/registers.js +8 -6
- package/out/registers.js.map +1 -1
- package/out/ro/adapters/retea-scolara/adapter.d.ts +5 -5
- package/out/ro/adapters/retea-scolara/adapter.js +5 -5
- package/out/ro/tools/fetch/retea-scolara.js +1 -1
- package/out/ro/tools/fetch/retea-scolara.js.map +1 -1
- package/out/runner.d.ts +3 -2
- package/out/runner.d.ts.map +1 -1
- package/out/runner.js +1 -1
- package/out/runner.js.map +1 -1
- package/out/sg/recipes/register.js +1 -1
- package/out/sg/recipes/register.js.map +1 -1
- package/out/sg/tools/fetch/acra.js +2 -2
- package/out/sg/tools/fetch/acra.js.map +1 -1
- package/out/sk/adapters/inspire/adapter.d.ts +5 -5
- package/out/sk/adapters/inspire/adapter.d.ts.map +1 -1
- package/out/sk/adapters/inspire/adapter.js +18 -18
- package/out/sk/adapters/inspire/adapter.js.map +1 -1
- package/out/sk/tools/fetch/inspire.d.ts +11 -10
- package/out/sk/tools/fetch/inspire.d.ts.map +1 -1
- package/out/sk/tools/fetch/inspire.js +15 -14
- package/out/sk/tools/fetch/inspire.js.map +1 -1
- package/out/source-register/effective-manifest.js +3 -3
- package/out/source-register/effective-manifest.js.map +1 -1
- package/out/source-register/register.d.ts +2 -2
- package/out/source-register/register.d.ts.map +1 -1
- package/out/source-register/register.js +2 -2
- package/out/source-register/register.js.map +1 -1
- package/out/source-register/training-manifest.d.ts +1 -1
- package/out/source-register/types.d.ts +12 -13
- package/out/source-register/types.d.ts.map +1 -1
- package/out/source-register/types.js +2 -2
- package/out/source-register/types.js.map +1 -1
- package/out/subvenue/promotions.d.ts +1 -1
- package/out/subvenue/promotions.js +1 -1
- package/out/subvenue/table.d.ts +4 -4
- package/out/subvenue/table.js +3 -3
- package/out/surfaces/locale.d.ts.map +1 -1
- package/out/surfaces/locale.js +2 -0
- package/out/surfaces/locale.js.map +1 -1
- package/out/synthesizers/anchor-absorption.d.ts +2 -1
- package/out/synthesizers/anchor-absorption.d.ts.map +1 -1
- package/out/synthesizers/anchor-absorption.js.map +1 -1
- package/out/synthesizers/boundary-stress.d.ts +1 -1
- package/out/synthesizers/boundary-stress.d.ts.map +1 -1
- package/out/synthesizers/boundary-stress.js +20 -23
- package/out/synthesizers/boundary-stress.js.map +1 -1
- package/out/synthesizers/house-venue.d.ts +3 -2
- package/out/synthesizers/house-venue.d.ts.map +1 -1
- package/out/synthesizers/house-venue.js +24 -26
- package/out/synthesizers/house-venue.js.map +1 -1
- package/out/synthesizers/no-street.d.ts.map +1 -1
- package/out/synthesizers/no-street.js.map +1 -1
- package/out/synthesizers/po-box.d.ts +4 -2
- package/out/synthesizers/po-box.d.ts.map +1 -1
- package/out/synthesizers/po-box.js.map +1 -1
- package/out/synthesizers/tail.d.ts +36 -0
- package/out/synthesizers/tail.d.ts.map +1 -0
- package/out/synthesizers/tail.js +32 -0
- package/out/synthesizers/tail.js.map +1 -0
- package/out/synthesizers/utils.d.ts +2 -1
- package/out/synthesizers/utils.d.ts.map +1 -1
- package/out/synthesizers/utils.js +17 -1
- package/out/synthesizers/utils.js.map +1 -1
- package/out/test-kit.js +2 -2
- package/out/test-kit.js.map +1 -1
- package/out/tools/audit.d.ts +2 -1
- package/out/tools/audit.d.ts.map +1 -1
- package/out/tools/audit.js +4 -3
- package/out/tools/audit.js.map +1 -1
- package/out/tools/corpus-stats.js +1 -1
- package/out/tools/corpus-stats.js.map +1 -1
- package/out/tools/fetch/atom.d.ts +8 -8
- package/out/tools/fetch/atom.d.ts.map +1 -1
- package/out/tools/fetch/atom.js +7 -8
- package/out/tools/fetch/atom.js.map +1 -1
- package/out/tools/fetch/cordis.d.ts +4 -3
- package/out/tools/fetch/cordis.d.ts.map +1 -1
- package/out/tools/fetch/cordis.js +9 -7
- package/out/tools/fetch/cordis.js.map +1 -1
- package/out/tools/fetch/download/manifest.d.ts.map +1 -1
- package/out/tools/fetch/download/manifest.js +2 -1
- package/out/tools/fetch/download/manifest.js.map +1 -1
- package/out/tools/fetch/download/network.d.ts +4 -4
- package/out/tools/fetch/download/retry.js +4 -4
- package/out/tools/fetch/download/retry.js.map +1 -1
- package/out/tools/fetch/geonames/dump.d.ts +3 -2
- package/out/tools/fetch/geonames/dump.d.ts.map +1 -1
- package/out/tools/fetch/geonames/dump.js +2 -1
- package/out/tools/fetch/geonames/dump.js.map +1 -1
- package/out/tools/fetch/geonames/postal.d.ts +2 -2
- package/out/tools/fetch/gleif.d.ts +3 -2
- package/out/tools/fetch/gleif.d.ts.map +1 -1
- package/out/tools/fetch/gleif.js +6 -4
- package/out/tools/fetch/gleif.js.map +1 -1
- package/out/tools/fetch/header.d.ts +7 -5
- package/out/tools/fetch/header.d.ts.map +1 -1
- package/out/tools/fetch/header.js +8 -6
- package/out/tools/fetch/header.js.map +1 -1
- package/out/tools/fetch/inspire-addresses.d.ts +32 -27
- package/out/tools/fetch/inspire-addresses.d.ts.map +1 -1
- package/out/tools/fetch/inspire-addresses.js +25 -24
- package/out/tools/fetch/inspire-addresses.js.map +1 -1
- package/out/tools/fetch/openaddresses.js +1 -1
- package/out/tools/fetch/openaddresses.js.map +1 -1
- package/out/tools/fetch/vlaanderen-ad.d.ts +5 -5
- package/out/tools/fetch/vlaanderen-ad.d.ts.map +1 -1
- package/out/tools/fetch/vlaanderen-ad.js +16 -16
- package/out/tools/fetch/vlaanderen-ad.js.map +1 -1
- package/out/tools/fetch/wfs-harvest.d.ts +26 -16
- package/out/tools/fetch/wfs-harvest.d.ts.map +1 -1
- package/out/tools/fetch/wfs-harvest.js +21 -18
- package/out/tools/fetch/wfs-harvest.js.map +1 -1
- package/out/tools/fetch.d.ts +0 -41
- package/out/tools/fetch.d.ts.map +1 -1
- package/out/tools/fetch.js +0 -41
- package/out/tools/fetch.js.map +1 -1
- package/out/tools/golden/expand.d.ts +7 -7
- package/out/tools/golden/expand.js +1 -1
- package/out/tools/golden/expand.js.map +1 -1
- package/out/tools/golden/promote.d.ts +2 -2
- package/out/tools/golden/promote.d.ts.map +1 -1
- package/out/tools/golden/promote.js +9 -6
- package/out/tools/golden/promote.js.map +1 -1
- package/out/tools/golden/relabel-street/directory.d.ts +4 -4
- package/out/tools/golden/relabel-street/directory.d.ts.map +1 -1
- package/out/tools/golden/relabel-street/directory.js +3 -2
- package/out/tools/golden/relabel-street/directory.js.map +1 -1
- package/out/tools/golden/relabel-street/row.d.ts +4 -3
- package/out/tools/golden/relabel-street/row.d.ts.map +1 -1
- package/out/tools/golden/relabel-street/row.js +3 -3
- package/out/tools/golden/relabel-street/row.js.map +1 -1
- package/out/tools/ingest-csv.js +3 -3
- package/out/tools/ingest-csv.js.map +1 -1
- package/out/tools/jsonl-to-parquet.d.ts +1 -1
- package/out/tools/lint/recipe-output/vocab.d.ts +10 -5
- package/out/tools/lint/recipe-output/vocab.d.ts.map +1 -1
- package/out/tools/lint/recipe-output/vocab.js.map +1 -1
- package/out/tools/lint/recipe-output.d.ts +8 -8
- package/out/tools/lint/recipe-output.d.ts.map +1 -1
- package/out/tools/lint/recipe-output.js +17 -0
- package/out/tools/lint/recipe-output.js.map +1 -1
- package/out/tools/overlay/kryptonite.d.ts +2 -2
- package/out/tools/overlay/kryptonite.d.ts.map +1 -1
- package/out/tools/overlay/kryptonite.js +2 -1
- package/out/tools/overlay/kryptonite.js.map +1 -1
- package/out/tools/overlay/manifest.d.ts +2 -1
- package/out/tools/overlay/manifest.d.ts.map +1 -1
- package/out/tools/overlay/manifest.js +2 -1
- package/out/tools/overlay/manifest.js.map +1 -1
- package/out/tools/overlay/merge-source.d.ts +2 -1
- package/out/tools/overlay/merge-source.d.ts.map +1 -1
- package/out/tools/overlay/merge-source.js.map +1 -1
- package/out/tools/overlay/split-slice.d.ts +1 -1
- package/out/tools/overlay/split-slice.js +1 -1
- package/out/tools/overlay/split-slice.js.map +1 -1
- package/out/tools/overlay/translit.d.ts +4 -3
- package/out/tools/overlay/translit.d.ts.map +1 -1
- package/out/tools/overlay/translit.js +2 -1
- package/out/tools/overlay/translit.js.map +1 -1
- package/out/tools/overture-subvenue.d.ts +1 -1
- package/out/tools/overture-subvenue.d.ts.map +1 -1
- package/out/tools/postcode-triples.d.ts +1 -1
- package/out/tools/postcode-triples.d.ts.map +1 -1
- package/out/tools/postcode-triples.js +4 -3
- package/out/tools/postcode-triples.js.map +1 -1
- package/out/tools/source-register/build.d.ts +10 -8
- package/out/tools/source-register/build.d.ts.map +1 -1
- package/out/tools/source-register/build.js +10 -8
- package/out/tools/source-register/build.js.map +1 -1
- package/out/tools/sub/venue/lexicon.d.ts +2 -6
- package/out/tools/sub/venue/lexicon.d.ts.map +1 -1
- package/out/tools/sub/venue/lexicon.js +2 -6
- package/out/tools/sub/venue/lexicon.js.map +1 -1
- package/out/tw/tools/fetch/gcis.js +3 -3
- package/out/tw/tools/fetch/gcis.js.map +1 -1
- package/out/types.d.ts +4 -3
- package/out/types.d.ts.map +1 -1
- package/out/types.js.map +1 -1
- package/out/us/adapters/state/hi-schools/workbook.d.ts +1 -1
- package/out/us/adapters/state/hi-schools/workbook.d.ts.map +1 -1
- package/out/us/adapters/state/hi-schools/workbook.js.map +1 -1
- package/out/us/adapters/usgov/nad/adapter.js +6 -6
- package/out/us/adapters/usgov/nad/adapter.js.map +1 -1
- package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js +2 -2
- package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js.map +1 -1
- package/out/us/fips-state.d.ts +2 -2
- package/out/us/fips-state.d.ts.map +1 -1
- package/out/us/fips-state.js.map +1 -1
- package/out/us/synthesizers/intersection.d.ts.map +1 -0
- package/out/{synthesizers → us/synthesizers}/intersection.js +13 -9
- package/out/us/synthesizers/intersection.js.map +1 -0
- package/out/{synthesizers → us/synthesizers}/street.d.ts +3 -2
- package/out/us/synthesizers/street.d.ts.map +1 -0
- package/out/{synthesizers → us/synthesizers}/street.js +12 -12
- package/out/us/synthesizers/street.js.map +1 -0
- package/out/us/tools/fetch/imls-pls.js +1 -1
- package/out/us/tools/fetch/imls-pls.js.map +1 -1
- package/out/us/tools/fetch/nad.d.ts +6 -6
- package/out/us/tools/fetch/nad.js +1 -1
- package/out/us/tools/fetch/nad.js.map +1 -1
- package/out/us/tools/fetch/nppes.js +3 -3
- package/out/us/tools/fetch/nppes.js.map +1 -1
- package/out/us/tools/fetch/state/hi-schools.d.ts +2 -1
- package/out/us/tools/fetch/state/hi-schools.d.ts.map +1 -1
- package/out/us/tools/fetch/state/hi-schools.js +1 -1
- package/out/us/tools/fetch/state/hi-schools.js.map +1 -1
- package/out/us/tools/fetch/tiger-full.js +1 -1
- package/out/us/tools/fetch/tiger-full.js.map +1 -1
- package/out/utils/align.d.ts +5 -3
- package/out/utils/align.d.ts.map +1 -1
- package/out/utils/align.js +5 -5
- package/out/utils/align.js.map +1 -1
- package/out/utils/golden.js +2 -2
- package/out/utils/golden.js.map +1 -1
- package/out/utils/license.d.ts +3 -3
- package/out/utils/license.d.ts.map +1 -1
- package/out/utils/license.js.map +1 -1
- package/out/utils/split.d.ts +1 -1
- package/out/utils/split.d.ts.map +1 -1
- package/out/utils/split.js +18 -14
- package/out/utils/split.js.map +1 -1
- package/out/utils/tokenize.d.ts +3 -20
- package/out/utils/tokenize.d.ts.map +1 -1
- package/out/utils/tokenize.js.map +1 -1
- package/out/utils/wof-json.js +3 -3
- package/out/utils/wof-json.js.map +1 -1
- package/package.json +18 -27
- package/lib/tools.ts +0 -31
- package/out/synthesizers/intersection.d.ts.map +0 -1
- package/out/synthesizers/intersection.js.map +0 -1
- package/out/synthesizers/street.d.ts.map +0 -1
- package/out/synthesizers/street.js.map +0 -1
- package/out/tools.d.ts +0 -31
- package/out/tools.d.ts.map +0 -1
- package/out/tools.js +0 -31
- package/out/tools.js.map +0 -1
- /package/out/{synthesizers → us/synthesizers}/intersection.d.ts +0 -0
|
@@ -23,19 +23,19 @@
|
|
|
23
23
|
* Each record names its immediate parent by `VKUR_CD` and `VKUR_TIPS`, and the parent names its own
|
|
24
24
|
* the same way, up to the country. The type codes are the register's: `104` city (`pilsēta`), `105`
|
|
25
25
|
* parish (`pagasts`), `106` village (`ciems`), `107` street (`iela`), `113` municipality (`novads`)
|
|
26
|
-
* and `101` Latvia
|
|
26
|
+
* and `101` Latvia. No table read lists its code `100000000` as a row. Over the 550,652 active records the
|
|
27
27
|
* chains take seven shapes, written from the parent upward. The rows column counts what the adapter
|
|
28
28
|
* emits after the refusals below:
|
|
29
29
|
*
|
|
30
30
|
* | Chain | Records | Rows | {@linkcode VarisAddressType} |
|
|
31
31
|
* | ----------------------------- | ------: | ------: | ----------------------------- |
|
|
32
|
-
* | parish, municipality | 116,225 | 116,225 | `
|
|
33
|
-
* | street, city, municipality | 113,906 | 113,905 | `
|
|
34
|
-
* | street, city | 111,218 | 111,217 | `
|
|
35
|
-
* | village, parish, municipality | 108,164 | 108,164 | `
|
|
36
|
-
* | street, village, parish, mun. | 98,192 | 98,179 | `
|
|
37
|
-
* | city, municipality | 2,814 | 2,814 | `
|
|
38
|
-
* | city | 133 | 133 | `
|
|
32
|
+
* | parish, municipality | 116,225 | 116,225 | `ParishNamedHouse` |
|
|
33
|
+
* | street, city, municipality | 113,906 | 113,905 | `TownStreet` |
|
|
34
|
+
* | street, city | 111,218 | 111,217 | `StateCityStreet` |
|
|
35
|
+
* | village, parish, municipality | 108,164 | 108,164 | `VillageNamedHouse` |
|
|
36
|
+
* | street, village, parish, mun. | 98,192 | 98,179 | `VillageStreet` |
|
|
37
|
+
* | city, municipality | 2,814 | 2,814 | `CityNamedHouse` |
|
|
38
|
+
* | city | 133 | 133 | `CityNamedHouse` |
|
|
39
39
|
*
|
|
40
40
|
* No active record has an unresolved or inactive ancestor, 0 of 550,652.
|
|
41
41
|
*
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
* `"Riņņi", Vecates pag., Valmieras nov., LV-4211`. Each
|
|
46
46
|
* part is the `NOSAUKUMS` of one object in the chain, in chain order, joined by a comma and a space,
|
|
47
47
|
* with the postcode `ATRIB` last. A building on a street writes the street name and the house number
|
|
48
|
-
* as one part, and a
|
|
48
|
+
* as one part, and a building with its own name writes it inside ASCII double quotes. The adapter composes
|
|
49
49
|
* that string from the chain and compares it with `STD`. Over the 550,637 active records the adapter
|
|
50
50
|
* does not refuse first, the two are equal on 550,637. A record where they differ is refused, so every
|
|
51
51
|
* row's `raw` is `STD` unchanged and every component's position in it is known. The row's surface is
|
|
52
|
-
* `attested`.
|
|
52
|
+
* `attested`. `alignRow` aligns the 550,637 rows at edit distance 0, quarantines none, and places
|
|
53
53
|
* every component in the order above.
|
|
54
54
|
*
|
|
55
55
|
* The comparison reads values as stored. 25 building names end in a space, and `STD` keeps it inside the
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
* block (`korpuss`) 1, one address in the register. Over the 323,316 street addresses, 249,783 are
|
|
69
69
|
* bare digits and 56,374 digits and a letter. 15 hold no digit, such as `Bauskas iela Ozoli`, where
|
|
70
70
|
* a house name stands in the number's place. Those are refused, because the name is not a number
|
|
71
|
-
* and labeling it a venue would place a venue after a street
|
|
72
|
-
* - A building's name is `venue`. SCHEMA.mdx defines `venue` as a
|
|
71
|
+
* and labeling it a venue would place a venue after a street. No other Latvian row does that.
|
|
72
|
+
* - A building's name is `venue`. SCHEMA.mdx defines `venue` as a place with a name and keeps
|
|
73
73
|
* `building_name` for Japan, and the Estonian register adapter labels a farm name `venue` for the same
|
|
74
74
|
* reason. The quotes are punctuation and lie outside the span. 236 names hold a quote of their own,
|
|
75
75
|
* such as `Stacija "Biksti"`, which the register writes `"Stacija "Biksti""`.
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
* village inside a rural municipality the same way.
|
|
82
82
|
* - A municipality is `region`, abbreviation included: `Valmieras nov.`. The register holds no tier
|
|
83
83
|
* above it: the parent of all 35 active municipalities is Latvia. The 7 active cities whose parent is
|
|
84
|
-
* Latvia, the state cities such as Rīga and Daugavpils, write no municipality, so their rows
|
|
84
|
+
* Latvia, the state cities such as Rīga and Daugavpils, write no municipality, so their rows have no
|
|
85
85
|
* region.
|
|
86
86
|
* - `ATRIB` is `postcode`, prefix included: `LV-4211`.
|
|
87
87
|
*
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
*
|
|
95
95
|
* ## Personal data, identity and license
|
|
96
96
|
*
|
|
97
|
-
* The register records places and names no owner or occupant, so no row
|
|
97
|
+
* The register records places and names no owner or occupant, so no row has a natural person's
|
|
98
98
|
* name. A building name is the name of the property, as on a map.
|
|
99
99
|
*
|
|
100
100
|
* The row id is the register's own object code, `lv-varis-<KODS>`. Five `STD` strings are each written
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
* publisher Valsts zemes dienests, and the column metadata posted beside `aw_dziv.csv` names
|
|
105
105
|
* `https://creativecommons.org/licenses/by/4.0/` as `dc:license`. CC BY 4.0 requires credit, a link to the license and
|
|
106
106
|
* a statement that changes were made, so every row records the license and
|
|
107
|
-
* {@linkcode LV_VARIS_ATTRIBUTION} is the credit the model card
|
|
107
|
+
* {@linkcode LV_VARIS_ATTRIBUTION} is the credit the model card states.
|
|
108
108
|
*
|
|
109
109
|
* The adapter honors `opts.limit` and `opts.signal`. `opts.country` is optional and accepts only `LV`.
|
|
110
110
|
*/
|
|
@@ -208,11 +208,11 @@ export const VarisRefusal = {
|
|
|
208
208
|
*/
|
|
209
209
|
UnexpectedHierarchy: "row:unexpected-hierarchy",
|
|
210
210
|
/**
|
|
211
|
-
* The record
|
|
211
|
+
* The record has no `LV-` postcode.
|
|
212
212
|
*/
|
|
213
213
|
PostcodeAbsent: "row:postcode-absent",
|
|
214
214
|
/**
|
|
215
|
-
* A building on a street
|
|
215
|
+
* A building on a street has a name with no digit where its number belongs.
|
|
216
216
|
*/
|
|
217
217
|
NamedHouseOnStreet: "row:named-house-on-street",
|
|
218
218
|
/**
|
|
@@ -228,7 +228,8 @@ export type VarisRefusal = (typeof VarisRefusal)[keyof typeof VarisRefusal]
|
|
|
228
228
|
*/
|
|
229
229
|
export const VarisAddressType = {
|
|
230
230
|
/**
|
|
231
|
-
* A street address in one of the state cities
|
|
231
|
+
* A street address in one of the state cities.
|
|
232
|
+
* Those cities lie under no municipality.
|
|
232
233
|
*/
|
|
233
234
|
StateCityStreet: "state-city-street",
|
|
234
235
|
/**
|
|
@@ -240,15 +241,15 @@ export const VarisAddressType = {
|
|
|
240
241
|
*/
|
|
241
242
|
VillageStreet: "village-street",
|
|
242
243
|
/**
|
|
243
|
-
* A
|
|
244
|
+
* A house with its own name in a city, on no street.
|
|
244
245
|
*/
|
|
245
246
|
CityNamedHouse: "city-named-house",
|
|
246
247
|
/**
|
|
247
|
-
* A
|
|
248
|
+
* A house with its own name in a village.
|
|
248
249
|
*/
|
|
249
250
|
VillageNamedHouse: "village-named-house",
|
|
250
251
|
/**
|
|
251
|
-
* A
|
|
252
|
+
* A house with its own name in a parish, in no village.
|
|
252
253
|
*/
|
|
253
254
|
ParishNamedHouse: "parish-named-house",
|
|
254
255
|
} as const
|
|
@@ -419,8 +420,8 @@ export function readVarisBuilding(record: VarisRecord, places: VarisPlaces): Var
|
|
|
419
420
|
/**
|
|
420
421
|
* Streams one table's records, each value as stored.
|
|
421
422
|
*
|
|
422
|
-
*
|
|
423
|
-
*
|
|
423
|
+
* The reader turns trimming off because `STD` keeps a stored trailing space inside a building name's quotes.
|
|
424
|
+
* The composition check compares the two.
|
|
424
425
|
*/
|
|
425
426
|
export function readVarisTable(path: PathBuilderLike): AsyncIterable<VarisRecord> {
|
|
426
427
|
return CSVSpliterator.fromAsync(path, { normalizeKeys: false, trim: false }) as AsyncIterable<VarisRecord>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import { APIClient } from "@mailwoman/core/api"
|
|
18
18
|
import { ByteFormatter } from "@mailwoman/core/fs/formatters"
|
|
19
|
-
import { tryStat } from "@mailwoman/core/fs/readers"
|
|
19
|
+
import { tryStat } from "@mailwoman/core/fs/readers/stat"
|
|
20
20
|
import { makeDirectories } from "@mailwoman/core/fs/writers"
|
|
21
21
|
import { sha256File } from "@mailwoman/core/hash"
|
|
22
22
|
import { PathBuilder, type PathBuilderLike } from "path-ts"
|
|
@@ -89,7 +89,8 @@ export interface DownloadVarisOptions {
|
|
|
89
89
|
outputDir: PathBuilderLike
|
|
90
90
|
/**
|
|
91
91
|
* The tables to download.
|
|
92
|
-
*
|
|
92
|
+
*
|
|
93
|
+
* @defaultValue every table the adapter reads.
|
|
93
94
|
*/
|
|
94
95
|
tables?: readonly VarisTable[]
|
|
95
96
|
force?: boolean
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
* Kadaster serves the whole country in one file. The ATOM service document at
|
|
9
9
|
* `https://service.pdok.nl/kadaster/ad/atom/adressen_inspire_geharmoniseerd.xml`, 2,247 bytes, holds
|
|
10
10
|
* one entry, and its `rel="alternate"` link is
|
|
11
|
-
* `https://service.pdok.nl/kadaster/ad/atom/downloads/addresses.gml.gz`, 819,465,603 bytes
|
|
11
|
+
* `https://service.pdok.nl/kadaster/ad/atom/downloads/addresses.gml.gz`, 819,465,603 bytes. It
|
|
12
12
|
* inflates to 29,677,448,685 bytes of GML holding 10,066,060 address features. The sibling feed URL
|
|
13
13
|
* the entry's own `<id>` names answers HTTP 404, so the download link is the only live one.
|
|
14
14
|
*
|
|
15
15
|
* The size decides the shape of the reader. The document is never buffered: the adapter opens the
|
|
16
|
-
* local `.gml.gz`, inflates it as a byte stream and takes one feature subtree at a time
|
|
17
|
-
* a value rather than
|
|
16
|
+
* local `.gml.gz`, inflates it as a byte stream and takes one feature subtree at a time. Each feature
|
|
17
|
+
* an address references contributes a value rather than its subtree, so the index is
|
|
18
18
|
* bounded by a string per street and per place name rather than by the document.
|
|
19
19
|
*
|
|
20
20
|
* Four things separate this publisher from the Czech one the shared primitives were first written
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
*
|
|
46
46
|
* So the extension joins the number with no separator and the second extension follows a hyphen.
|
|
47
47
|
* 305,542 of 345,309 addresses in the prefix write an `addressNumberExtension` that is present and
|
|
48
|
-
* empty, spelled `<ad:designator/>`. That states an address with no extension
|
|
49
|
-
*
|
|
48
|
+
* empty, spelled `<ad:designator/>`. That states an address with no extension. That condition differs
|
|
49
|
+
* from void.
|
|
50
50
|
*
|
|
51
51
|
* The place name comes from `ad:AddressAreaName`, the BAG *woonplaats*. The prefix holds exactly one
|
|
52
52
|
* `ad:AdminUnitName` feature and it is the country, `Nederland` at `1stOrder`, so this feed publishes
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
* against 2,622 dot-form ids and 0 hyphen-form ids. The same element on an `ad:AddressAreaName` uses
|
|
61
61
|
* the dot form and resolves. A reader walking `ThoroughfareName → situatedWithin → AddressAreaName`
|
|
62
62
|
* would therefore read an empty locality for every street and report no failure. So the adapter reads
|
|
63
|
-
* the street and the place from the address's own `ad:component` references,
|
|
64
|
-
*
|
|
63
|
+
* the street and the place from the address's own `ad:component` references, and those use the dot
|
|
64
|
+
* form. It never follows `ad:situatedWithin`. Every reference it does follow raises when it resolves to no
|
|
65
65
|
* feature, so the hyphen form reaching an `ad:component` would be reported rather than dropped.
|
|
66
66
|
*
|
|
67
67
|
* Unlike Czechia, this publisher offers no string to check a whole rendered line against.
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
*
|
|
71
71
|
* Kadaster states one license and states it as a URL. Both `rights` elements of the ATOM service
|
|
72
72
|
* document read `https://creativecommons.org/publicdomain/zero/1.0/deed.nl`, the Dutch deed page for
|
|
73
|
-
* CC0 1.0 Universal
|
|
73
|
+
* CC0 1.0 Universal. The address-source register elected it with `spdx` `CC0-1.0`. CC0 reserves no
|
|
74
74
|
* act, so every row records that identifier and no attribution clause is owed, although crediting
|
|
75
75
|
* Kadaster stays good practice.
|
|
76
76
|
*
|
|
@@ -161,19 +161,20 @@ const COMPONENT_TYPES = ["ad:ThoroughfareName", "ad:AddressAreaName", "ad:AdminU
|
|
|
161
161
|
*/
|
|
162
162
|
interface ReferencedValue {
|
|
163
163
|
/**
|
|
164
|
-
* The feature's element name
|
|
164
|
+
* The feature's element name.
|
|
165
|
+
* That decides where its value goes.
|
|
165
166
|
*/
|
|
166
167
|
readonly type: string
|
|
167
168
|
|
|
168
169
|
/**
|
|
169
|
-
* The street name or place name the feature states,
|
|
170
|
+
* The street name or place name the feature states, null when the feature states none.
|
|
170
171
|
*/
|
|
171
|
-
readonly name
|
|
172
|
+
readonly name: string | null
|
|
172
173
|
|
|
173
174
|
/**
|
|
174
175
|
* The administrative level an `ad:AdminUnitName` states, such as `1stOrder`.
|
|
175
176
|
*/
|
|
176
|
-
readonly level
|
|
177
|
+
readonly level: string | null
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
/**
|
|
@@ -181,29 +182,29 @@ interface ReferencedValue {
|
|
|
181
182
|
*/
|
|
182
183
|
function referencedValue(feature: MarkupElement): ReferencedValue {
|
|
183
184
|
if (feature.name === "ad:ThoroughfareName") {
|
|
184
|
-
return { type: feature.name, name: thoroughfareName(feature) }
|
|
185
|
+
return { type: feature.name, name: thoroughfareName(feature), level: null }
|
|
185
186
|
}
|
|
186
187
|
|
|
187
188
|
if (feature.name === "ad:AdminUnitName") {
|
|
188
189
|
return { type: feature.name, name: placeName(feature), level: adminUnitLevel(feature) }
|
|
189
190
|
}
|
|
190
191
|
|
|
191
|
-
return { type: feature.name, name: placeName(feature) }
|
|
192
|
+
return { type: feature.name, name: placeName(feature), level: null }
|
|
192
193
|
}
|
|
193
194
|
|
|
194
195
|
/**
|
|
195
196
|
* The house number as Kadaster writes it in BAG's `huis_nlt`.
|
|
196
197
|
*
|
|
197
|
-
* The letter joins the number directly and the addition follows a hyphen
|
|
198
|
-
*
|
|
198
|
+
* The letter joins the number directly and the addition follows a hyphen.
|
|
199
|
+
* The table in this module's header reads that off three records matched against
|
|
199
200
|
* the Locatieserver by their `nummeraanduiding` id.
|
|
200
201
|
*
|
|
201
|
-
* @returns The joined number, or
|
|
202
|
+
* @returns The joined number, or null when the publisher states no `addressNumber`.
|
|
202
203
|
*/
|
|
203
|
-
export function dutchHouseNumber(byType: ReadonlyMap<string, readonly string[]>): string |
|
|
204
|
+
export function dutchHouseNumber(byType: ReadonlyMap<string, readonly string[]>): string | null {
|
|
204
205
|
const number = designator(byType, "addressNumber")
|
|
205
206
|
|
|
206
|
-
if (!number) return
|
|
207
|
+
if (!number) return null
|
|
207
208
|
|
|
208
209
|
const letter = designator(byType, "addressNumberExtension") ?? ""
|
|
209
210
|
const addition = designator(byType, "addressNumber2ndExtension") ?? ""
|
|
@@ -240,8 +241,7 @@ export function createNLKadasterAdapter(): CorpusAdapter {
|
|
|
240
241
|
for await (const row of streamInspireRows<ReferencedValue>({
|
|
241
242
|
chunks: documentChunks(documentPath),
|
|
242
243
|
componentElements: COMPONENT_TYPES,
|
|
243
|
-
// One string per feature rather than its subtree
|
|
244
|
-
// instead of 300,318 trees.
|
|
244
|
+
// One string per feature rather than its subtree.
|
|
245
245
|
index: referencedValue,
|
|
246
246
|
compose: (address, referenced, final) => composeRow(address, referenced, { final }),
|
|
247
247
|
limit: opts.limit === undefined ? undefined : opts.limit - emitted,
|
|
@@ -257,7 +257,7 @@ export function createNLKadasterAdapter(): CorpusAdapter {
|
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
|
-
* One address's row, `
|
|
260
|
+
* One address's row, `null` when it holds too little to render, or `"deferred"`
|
|
261
261
|
* when a reference it states is not indexed yet.
|
|
262
262
|
*
|
|
263
263
|
* With `final` set the document has ended, so an unresolved reference is a value the reader
|
|
@@ -267,16 +267,16 @@ function composeRow(
|
|
|
267
267
|
address: MarkupElement,
|
|
268
268
|
referenced: ReadonlyMap<string, ReferencedValue>,
|
|
269
269
|
options: { final?: boolean } = {}
|
|
270
|
-
): CanonicalRow |
|
|
271
|
-
const addressID = address.attributes["gml:id"]?.trim()
|
|
270
|
+
): CanonicalRow | null | "deferred" {
|
|
271
|
+
const addressID = address.attributes["gml:id"]?.trim() ?? null
|
|
272
272
|
const voided = voidDesignatorTypes(address)
|
|
273
273
|
|
|
274
274
|
for (const type of ["addressNumber", "postalDeliveryIdentifier"]) {
|
|
275
275
|
if (voided.has(type)) throw new VoidDesignatorError(NL_KADASTER_ADAPTER_ID, addressID, type)
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
let street: string |
|
|
279
|
-
let locality: string |
|
|
278
|
+
let street: string | null = null
|
|
279
|
+
let locality: string | null = null
|
|
280
280
|
|
|
281
281
|
for (const href of componentHrefs(address)) {
|
|
282
282
|
const key = componentJoinKey(href)
|
|
@@ -299,13 +299,13 @@ function composeRow(
|
|
|
299
299
|
// reads `1stOrder` while the reference's position states no level at all.
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
if (!locality) return
|
|
302
|
+
if (!locality) return null
|
|
303
303
|
|
|
304
304
|
const byType = designatorsByType(address)
|
|
305
305
|
const house = dutchHouseNumber(byType)
|
|
306
306
|
const postcode = designator(byType, "postalDeliveryIdentifier")
|
|
307
307
|
|
|
308
|
-
if (!street && !postcode) return
|
|
308
|
+
if (!street && !postcode) return null
|
|
309
309
|
|
|
310
310
|
const components: CanonicalRow["components"] = {}
|
|
311
311
|
|
|
@@ -325,7 +325,7 @@ function composeRow(
|
|
|
325
325
|
|
|
326
326
|
const rendered = formatAddressRow(components, "NL", { singleLine: true })
|
|
327
327
|
|
|
328
|
-
if (!rendered) return
|
|
328
|
+
if (!rendered) return null
|
|
329
329
|
|
|
330
330
|
const { raw, components: aligned } = rendered
|
|
331
331
|
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
import { APIClient, assertNoOGCServiceException } from "@mailwoman/core/api"
|
|
35
35
|
import { ByteFormatter } from "@mailwoman/core/fs/formatters"
|
|
36
|
-
import { tryStat } from "@mailwoman/core/fs/readers"
|
|
36
|
+
import { tryStat } from "@mailwoman/core/fs/readers/stat"
|
|
37
37
|
import { makeDirectories } from "@mailwoman/core/fs/writers"
|
|
38
38
|
import { sha256File } from "@mailwoman/core/hash"
|
|
39
39
|
import { PathBuilder, type PathBuilderLike } from "path-ts"
|
|
@@ -44,12 +44,14 @@ import type { BaseFetchOptions, FetchSummary, SourceManifest } from "#tools/fetc
|
|
|
44
44
|
import { downloadToFile, readManifest, writeManifest } from "#tools/fetch/download"
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* The ATOM download service for the theme
|
|
47
|
+
* The ATOM download service for the theme.
|
|
48
|
+
* It holds the country's one entry.
|
|
48
49
|
*/
|
|
49
50
|
export const NL_KADASTER_FEED_URL = "https://service.pdok.nl/kadaster/ad/atom/adressen_inspire_geharmoniseerd.xml"
|
|
50
51
|
|
|
51
52
|
/**
|
|
52
|
-
* The name the download is written under
|
|
53
|
+
* The name the download is written under.
|
|
54
|
+
* The adapter's `inputPath` states this name.
|
|
53
55
|
*
|
|
54
56
|
* The publisher's own name for the file.
|
|
55
57
|
* The adapter reads a `.gml.gz` by inflating it, so the suffix is load-bearing.
|
|
@@ -59,8 +61,8 @@ export const NL_KADASTER_DOWNLOAD_FILENAME = "addresses.gml.gz"
|
|
|
59
61
|
/**
|
|
60
62
|
* The attribution recorded in the manifest.
|
|
61
63
|
*
|
|
62
|
-
* CC0 1.0 reserves no act and owes no attribution clause
|
|
63
|
-
* repository chooses
|
|
64
|
+
* CC0 1.0 reserves no act and owes no attribution clause.
|
|
65
|
+
* This attribution is a credit the repository chooses, rather than a condition of the grant.
|
|
64
66
|
*/
|
|
65
67
|
export const NL_KADASTER_ATTRIBUTION = "Kadaster"
|
|
66
68
|
|
|
@@ -70,8 +72,9 @@ const SLUG = NL_KADASTER_ADAPTER_ID
|
|
|
70
72
|
* What one run recorded.
|
|
71
73
|
*
|
|
72
74
|
* `feed_updated` is the entry's own `<updated>`.
|
|
73
|
-
* A later run downloads again when that value changes
|
|
74
|
-
*
|
|
75
|
+
* A later run downloads again when that value changes.
|
|
76
|
+
*
|
|
77
|
+
* That is the freshness signal the ATOM feed offers in place of an HTTP validator.
|
|
75
78
|
*
|
|
76
79
|
* `rights` is the license URL the feed states, recorded so a change of terms is
|
|
77
80
|
* visible in the artifact rather than only in the register.
|
|
@@ -108,7 +111,7 @@ export interface NLKadasterPublication {
|
|
|
108
111
|
* The entry's own `<updated>`, or `null` where the feed states none.
|
|
109
112
|
*
|
|
110
113
|
* `updated` sits on the Atom entry as well as on the feed, and this reads
|
|
111
|
-
* the entry that
|
|
114
|
+
* the entry that held the data link.
|
|
112
115
|
* The feed reported `2026-09-02T11:45:47Z` when this reader was written.
|
|
113
116
|
*/
|
|
114
117
|
feedUpdated: string | null
|
|
@@ -178,17 +181,18 @@ export async function readNLKadasterPublication(
|
|
|
178
181
|
* Whether the file on disk is the one the feed currently offers.
|
|
179
182
|
*
|
|
180
183
|
* A skip requires the feed to state an `<updated>` value.
|
|
181
|
-
* Where it states none, both sides read `null` and an equality test would hold
|
|
182
|
-
*
|
|
184
|
+
* Where it states none, both sides read `null` and an equality test would hold.
|
|
185
|
+
*
|
|
186
|
+
* A skip there would keep a download of unknown age for as long as the feed stayed silent.
|
|
183
187
|
*
|
|
184
|
-
*
|
|
188
|
+
* A second 782 MiB download is the slower error and the recoverable one.
|
|
185
189
|
*/
|
|
186
190
|
export function nlKadasterPublicationIsRecorded(
|
|
187
191
|
recorded: NLKadasterManifest,
|
|
188
192
|
bytesOnDisk: number,
|
|
189
193
|
publication: NLKadasterPublication
|
|
190
194
|
): boolean {
|
|
191
|
-
if (publication.feedUpdated
|
|
195
|
+
if (!publication.feedUpdated) return false
|
|
192
196
|
|
|
193
197
|
return recorded.feed_updated === publication.feedUpdated && recorded.bytes === bytesOnDisk
|
|
194
198
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* `matrikkelen`: Kartverket's `Matrikkelen - Adresse` CSV adapter, covering Norway and Svalbard.
|
|
7
7
|
*
|
|
8
8
|
* Input is a semicolon-separated CSV from Geonorge, published per area beside a whole-country
|
|
9
|
-
* extract. Both
|
|
9
|
+
* extract. Both have the same 46 columns, so one reader serves either. The adapter reads
|
|
10
10
|
* `adressenavn` as the street, `nummer` and `bokstav` as the house number, and `postnummer` with
|
|
11
11
|
* `poststed` as the postcode and its postal place.
|
|
12
12
|
*
|
|
@@ -55,8 +55,9 @@ export const MATRIKKELEN_COUNTRIES: readonly string[] = ["NO", "SJ"]
|
|
|
55
55
|
* The subset of the 46 columns the adapter consults.
|
|
56
56
|
*
|
|
57
57
|
* The explicit shape catches a column rename early.
|
|
58
|
-
* The first column's name
|
|
59
|
-
*
|
|
58
|
+
* The first column's name has a byte-order mark in the published file.
|
|
59
|
+
*
|
|
60
|
+
* The adapter reads `adresseId` instead, so no field here depends on that spelling.
|
|
60
61
|
*/
|
|
61
62
|
interface MatrikkelenRow {
|
|
62
63
|
kommunenummer: string
|
|
@@ -111,8 +112,8 @@ export function createMatrikkelenAdapter(): CorpusAdapter {
|
|
|
111
112
|
|
|
112
113
|
// A `matrikkeladresse` addresses a cadastral unit rather than a street, so its
|
|
113
114
|
// `adresseTekst` reads as a farm name and a holding number, such as `Øvrabø, 124/1`.
|
|
114
|
-
// It
|
|
115
|
-
//
|
|
115
|
+
// It has no street to align, and the mainland file holds 34,522 of them
|
|
116
|
+
// against 2,568,832 `vegadresse` rows.
|
|
116
117
|
if ((record.adressetype ?? "").trim() !== "vegadresse") {
|
|
117
118
|
cadastral += 1
|
|
118
119
|
|