@mailwoman/corpus 10.1.0 → 10.2.1
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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bd-adresses.js","sourceRoot":"","sources":["../../../../lib/lu/tools/fetch/bd-adresses.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"bd-adresses.js","sourceRoot":"","sources":["../../../../lib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AAY;QACpC,OAAO;KACP,CAAA;IAED,MAAM,aAAa,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;IAE3C,MAAM,EAAE,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,OAAO,CAAC,MAAM,oBAAoB,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAA;IAC3G,MAAM,EAAE,CAAC,yBAAyB,YAAY,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;IAE5D,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAA;AAC9D,CAAC;AAQD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CACpC,OAA+B,EAC/B,MAA+B;IAE/B,YAAY,MAAM,GAAG,IAAI,SAAS,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAEtE,yFAAyF;IACzF,0DAA0D;IAC1D,OAAO,MAAM,kBAAkB,CAAC,MAAM,EAAE;QACvC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;QAChC,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM;KACN,CAAC,CAAA;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAoB;IACvD,OAAO,OAAO,CAAC,IAAI,EAAE,2BAA2B,CAAC,CAAA;AAClD,CAAC"}
|
|
@@ -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
|
*/
|
|
@@ -180,11 +180,11 @@ export declare const VarisRefusal: {
|
|
|
180
180
|
*/
|
|
181
181
|
readonly UnexpectedHierarchy: "row:unexpected-hierarchy";
|
|
182
182
|
/**
|
|
183
|
-
* The record
|
|
183
|
+
* The record has no `LV-` postcode.
|
|
184
184
|
*/
|
|
185
185
|
readonly PostcodeAbsent: "row:postcode-absent";
|
|
186
186
|
/**
|
|
187
|
-
* A building on a street
|
|
187
|
+
* A building on a street has a name with no digit where its number belongs.
|
|
188
188
|
*/
|
|
189
189
|
readonly NamedHouseOnStreet: "row:named-house-on-street";
|
|
190
190
|
/**
|
|
@@ -198,7 +198,8 @@ export type VarisRefusal = (typeof VarisRefusal)[keyof typeof VarisRefusal];
|
|
|
198
198
|
*/
|
|
199
199
|
export declare const VarisAddressType: {
|
|
200
200
|
/**
|
|
201
|
-
* A street address in one of the state cities
|
|
201
|
+
* A street address in one of the state cities.
|
|
202
|
+
* Those cities lie under no municipality.
|
|
202
203
|
*/
|
|
203
204
|
readonly StateCityStreet: "state-city-street";
|
|
204
205
|
/**
|
|
@@ -210,15 +211,15 @@ export declare const VarisAddressType: {
|
|
|
210
211
|
*/
|
|
211
212
|
readonly VillageStreet: "village-street";
|
|
212
213
|
/**
|
|
213
|
-
* A
|
|
214
|
+
* A house with its own name in a city, on no street.
|
|
214
215
|
*/
|
|
215
216
|
readonly CityNamedHouse: "city-named-house";
|
|
216
217
|
/**
|
|
217
|
-
* A
|
|
218
|
+
* A house with its own name in a village.
|
|
218
219
|
*/
|
|
219
220
|
readonly VillageNamedHouse: "village-named-house";
|
|
220
221
|
/**
|
|
221
|
-
* A
|
|
222
|
+
* A house with its own name in a parish, in no village.
|
|
222
223
|
*/
|
|
223
224
|
readonly ParishNamedHouse: "parish-named-house";
|
|
224
225
|
};
|
|
@@ -267,8 +268,8 @@ export declare function readVarisBuilding(record: VarisRecord, places: VarisPlac
|
|
|
267
268
|
/**
|
|
268
269
|
* Streams one table's records, each value as stored.
|
|
269
270
|
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
271
|
+
* The reader turns trimming off because `STD` keeps a stored trailing space inside a building name's quotes.
|
|
272
|
+
* The composition check compares the two.
|
|
272
273
|
*/
|
|
273
274
|
export declare function readVarisTable(path: PathBuilderLike): AsyncIterable<VarisRecord>;
|
|
274
275
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/lv/adapters/varis/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAM9C,OAAO,EAGN,KAAK,YAAY,EACjB,KAAK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AK,EAAE,MAAM,CAAA;IACb,GAAG,EAAE,MAAM,CAAA;CACX;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,OAAO,CAAA;CACf;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;AAEzD,MAAM,MAAM,YAAY,GACrB;IAAE,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAA;CAAE,GAC3E;IAAE,QAAQ,CAAC,OAAO,EAAE,YAAY,CAAA;CAAE,CAAA;AASrC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,cAAc,CAAA;AAiC7C;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,GAAG,YAAY,CA+ExF;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,eAAe,GAAG,aAAa,CAAC,WAAW,CAAC,CAEhF;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,SAAS,EAAE,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAsBlG;AAED,wBAAgB,kBAAkB,IAAI,aAAa,CAsClD;AAED;;GAEG;AACH,eAAO,MAAM,YAAY,eAAuB,CAAA"}
|
|
@@ -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
|
*/
|
|
@@ -185,11 +185,11 @@ export const VarisRefusal = {
|
|
|
185
185
|
*/
|
|
186
186
|
UnexpectedHierarchy: "row:unexpected-hierarchy",
|
|
187
187
|
/**
|
|
188
|
-
* The record
|
|
188
|
+
* The record has no `LV-` postcode.
|
|
189
189
|
*/
|
|
190
190
|
PostcodeAbsent: "row:postcode-absent",
|
|
191
191
|
/**
|
|
192
|
-
* A building on a street
|
|
192
|
+
* A building on a street has a name with no digit where its number belongs.
|
|
193
193
|
*/
|
|
194
194
|
NamedHouseOnStreet: "row:named-house-on-street",
|
|
195
195
|
/**
|
|
@@ -202,7 +202,8 @@ export const VarisRefusal = {
|
|
|
202
202
|
*/
|
|
203
203
|
export const VarisAddressType = {
|
|
204
204
|
/**
|
|
205
|
-
* A street address in one of the state cities
|
|
205
|
+
* A street address in one of the state cities.
|
|
206
|
+
* Those cities lie under no municipality.
|
|
206
207
|
*/
|
|
207
208
|
StateCityStreet: "state-city-street",
|
|
208
209
|
/**
|
|
@@ -214,15 +215,15 @@ export const VarisAddressType = {
|
|
|
214
215
|
*/
|
|
215
216
|
VillageStreet: "village-street",
|
|
216
217
|
/**
|
|
217
|
-
* A
|
|
218
|
+
* A house with its own name in a city, on no street.
|
|
218
219
|
*/
|
|
219
220
|
CityNamedHouse: "city-named-house",
|
|
220
221
|
/**
|
|
221
|
-
* A
|
|
222
|
+
* A house with its own name in a village.
|
|
222
223
|
*/
|
|
223
224
|
VillageNamedHouse: "village-named-house",
|
|
224
225
|
/**
|
|
225
|
-
* A
|
|
226
|
+
* A house with its own name in a parish, in no village.
|
|
226
227
|
*/
|
|
227
228
|
ParishNamedHouse: "parish-named-house",
|
|
228
229
|
};
|
|
@@ -336,8 +337,8 @@ export function readVarisBuilding(record, places) {
|
|
|
336
337
|
/**
|
|
337
338
|
* Streams one table's records, each value as stored.
|
|
338
339
|
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
340
|
+
* The reader turns trimming off because `STD` keeps a stored trailing space inside a building name's quotes.
|
|
341
|
+
* The composition check compares the two.
|
|
341
342
|
*/
|
|
342
343
|
export function readVarisTable(path) {
|
|
343
344
|
return CSVSpliterator.fromAsync(path, { normalizeKeys: false, trim: false });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/lv/adapters/varis/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EACN,WAAW,EAIX,YAAY,EACZ,aAAa,GACb,MAAM,QAAQ,CAAA;AA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M,OAAO,CAAC,QAAQ,CAAA;gBAEtB,OAAO,EAAE,CAAA;YACV,CAAC;QACF,CAAC;KACD,CAAA;AACF,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,EAAE,CAAA"}
|
|
@@ -57,7 +57,8 @@ export interface DownloadVarisOptions {
|
|
|
57
57
|
outputDir: PathBuilderLike;
|
|
58
58
|
/**
|
|
59
59
|
* The tables to download.
|
|
60
|
-
*
|
|
60
|
+
*
|
|
61
|
+
* @defaultValue every table the adapter reads.
|
|
61
62
|
*/
|
|
62
63
|
tables?: readonly VarisTable[];
|
|
63
64
|
force?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"varis.d.ts","sourceRoot":"","sources":["../../../../lib/lv/tools/fetch/varis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAK/C,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAE3D,OAAO,EAAuD,KAAK,UAAU,EAAE,MAAM,4BAA4B,CAAA;AACjH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAG3F;;GAEG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,oBAAoB,8EAAiF,CAAA;AAWlH;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACxD,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,aAAa,EAAE,MAAM,GAAG,IAAI,CAAA;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,SAAS,EAAE,MAAM,GAAG,I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,EAAE,iBAAiB,EAAE,CAAA;CAC1B;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,SAAS,YAAY,EAAE,EAAE,QAAQ,EAAE,MAAM,GAAG,YAAY,CAUlG;AAED,MAAM,WAAW,oBAAoB;IACpC,SAAS,EAAE,eAAe,CAAA;IAC1B;;;;OAIG;IACH,MAAM,CAAC,EAAE,SAAS,UAAU,EAAE,CAAA;IAC9B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;CAC/B;AAED,wBAAsB,aAAa,CAClC,MAAM,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,EAChC,OAAO,EAAE,oBAAoB,GAC3B,OAAO,CAAC,YAAY,CAAC,CAkFvB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC,GAAG,eAAe,CAEpF;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IAC1D,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,WAAW,CAAA;CACpB;AAED,wBAAsB,UAAU,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC,CAYnH"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { APIClient } from "@mailwoman/core/api";
|
|
17
17
|
import { ByteFormatter } from "@mailwoman/core/fs/formatters";
|
|
18
|
-
import { tryStat } from "@mailwoman/core/fs/readers";
|
|
18
|
+
import { tryStat } from "@mailwoman/core/fs/readers/stat";
|
|
19
19
|
import { makeDirectories } from "@mailwoman/core/fs/writers";
|
|
20
20
|
import { sha256File } from "@mailwoman/core/hash";
|
|
21
21
|
import { PathBuilder } from "path-ts";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"varis.js","sourceRoot":"","sources":["../../../../lib/lv/tools/fetch/varis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"varis.js","sourceRoot":"","sources":["../../../../lib/lv/tools/fetch/varis.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAwB,MAAM,SAAS,CAAA;AAE3D,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,YAAY,EAAmB,MAAM,4BAA4B,CAAA;AAGjH,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAEnF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAA;AAExD;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,yDAAyD,mBAAmB,EAAE,CAAA;AAElH,MAAM,IAAI,GAAG,mBAAmB,CAAA;AA6BhC;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,SAAkC,EAAE,QAAg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CAAC,IAAI,CAAC,CAAA;AACrB,CAAC;AAQD,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,OAA0B,EAAE,MAA+B;IAC3F,YAAY,MAAM,GAAG,IAAI,SAAS,CAAC,EAAE,WAAW,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAA;IAEtE,sFAAsF;IACtF,OAAO,MAAM,aAAa,CAAC,MAAM,EAAE;QAClC,SAAS,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;QAChC,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,MAAM;KACN,CAAC,CAAA;AACH,CAAC"}
|
|
@@ -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
|
*
|
|
@@ -110,13 +110,13 @@ export declare const NL_KADASTER_DEFAULT_LICENSE = "CC0-1.0";
|
|
|
110
110
|
/**
|
|
111
111
|
* The house number as Kadaster writes it in BAG's `huis_nlt`.
|
|
112
112
|
*
|
|
113
|
-
* The letter joins the number directly and the addition follows a hyphen
|
|
114
|
-
*
|
|
113
|
+
* The letter joins the number directly and the addition follows a hyphen.
|
|
114
|
+
* The table in this module's header reads that off three records matched against
|
|
115
115
|
* the Locatieserver by their `nummeraanduiding` id.
|
|
116
116
|
*
|
|
117
|
-
* @returns The joined number, or
|
|
117
|
+
* @returns The joined number, or null when the publisher states no `addressNumber`.
|
|
118
118
|
*/
|
|
119
|
-
export declare function dutchHouseNumber(byType: ReadonlyMap<string, readonly string[]>): string |
|
|
119
|
+
export declare function dutchHouseNumber(byType: ReadonlyMap<string, readonly string[]>): string | null;
|
|
120
120
|
export declare function createNLKadasterAdapter(): CorpusAdapter;
|
|
121
121
|
/**
|
|
122
122
|
* The configured adapter instance registered with the corpus builder.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/nl/adapters/kadaster/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AAyBH,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAA;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,0BAA0C,CAAA;AAE3E;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAAW,CAAA;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/nl/adapters/kadaster/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AAyBH,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAA;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,0BAA0C,CAAA;AAE3E;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAAW,CAAA;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,YAAY,CAAA;AA0DpD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,GAAG,MAAM,GAAG,IAAI,CAS9F;AAED,wBAAgB,uBAAuB,IAAI,aAAa,CA0CvD;AA8HD;;GAEG;AACH,eAAO,MAAM,iBAAiB,eAA4B,CAAA"}
|
|
@@ -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
|
*
|
|
@@ -140,26 +140,26 @@ const COMPONENT_TYPES = ["ad:ThoroughfareName", "ad:AddressAreaName", "ad:AdminU
|
|
|
140
140
|
*/
|
|
141
141
|
function referencedValue(feature) {
|
|
142
142
|
if (feature.name === "ad:ThoroughfareName") {
|
|
143
|
-
return { type: feature.name, name: thoroughfareName(feature) };
|
|
143
|
+
return { type: feature.name, name: thoroughfareName(feature), level: null };
|
|
144
144
|
}
|
|
145
145
|
if (feature.name === "ad:AdminUnitName") {
|
|
146
146
|
return { type: feature.name, name: placeName(feature), level: adminUnitLevel(feature) };
|
|
147
147
|
}
|
|
148
|
-
return { type: feature.name, name: placeName(feature) };
|
|
148
|
+
return { type: feature.name, name: placeName(feature), level: null };
|
|
149
149
|
}
|
|
150
150
|
/**
|
|
151
151
|
* The house number as Kadaster writes it in BAG's `huis_nlt`.
|
|
152
152
|
*
|
|
153
|
-
* The letter joins the number directly and the addition follows a hyphen
|
|
154
|
-
*
|
|
153
|
+
* The letter joins the number directly and the addition follows a hyphen.
|
|
154
|
+
* The table in this module's header reads that off three records matched against
|
|
155
155
|
* the Locatieserver by their `nummeraanduiding` id.
|
|
156
156
|
*
|
|
157
|
-
* @returns The joined number, or
|
|
157
|
+
* @returns The joined number, or null when the publisher states no `addressNumber`.
|
|
158
158
|
*/
|
|
159
159
|
export function dutchHouseNumber(byType) {
|
|
160
160
|
const number = designator(byType, "addressNumber");
|
|
161
161
|
if (!number)
|
|
162
|
-
return
|
|
162
|
+
return null;
|
|
163
163
|
const letter = designator(byType, "addressNumberExtension") ?? "";
|
|
164
164
|
const addition = designator(byType, "addressNumber2ndExtension") ?? "";
|
|
165
165
|
return composeHouseNumber(composeHouseNumber(number, letter), addition, "-");
|
|
@@ -189,8 +189,7 @@ export function createNLKadasterAdapter() {
|
|
|
189
189
|
for await (const row of streamInspireRows({
|
|
190
190
|
chunks: documentChunks(documentPath),
|
|
191
191
|
componentElements: COMPONENT_TYPES,
|
|
192
|
-
// One string per feature rather than its subtree
|
|
193
|
-
// instead of 300,318 trees.
|
|
192
|
+
// One string per feature rather than its subtree.
|
|
194
193
|
index: referencedValue,
|
|
195
194
|
compose: (address, referenced, final) => composeRow(address, referenced, { final }),
|
|
196
195
|
limit: opts.limit === undefined ? undefined : opts.limit - emitted,
|
|
@@ -204,21 +203,21 @@ export function createNLKadasterAdapter() {
|
|
|
204
203
|
};
|
|
205
204
|
}
|
|
206
205
|
/**
|
|
207
|
-
* One address's row, `
|
|
206
|
+
* One address's row, `null` when it holds too little to render, or `"deferred"`
|
|
208
207
|
* when a reference it states is not indexed yet.
|
|
209
208
|
*
|
|
210
209
|
* With `final` set the document has ended, so an unresolved reference is a value the reader
|
|
211
210
|
* asked for and could not read, and it raises rather than rendering the address without it.
|
|
212
211
|
*/
|
|
213
212
|
function composeRow(address, referenced, options = {}) {
|
|
214
|
-
const addressID = address.attributes["gml:id"]?.trim();
|
|
213
|
+
const addressID = address.attributes["gml:id"]?.trim() ?? null;
|
|
215
214
|
const voided = voidDesignatorTypes(address);
|
|
216
215
|
for (const type of ["addressNumber", "postalDeliveryIdentifier"]) {
|
|
217
216
|
if (voided.has(type))
|
|
218
217
|
throw new VoidDesignatorError(NL_KADASTER_ADAPTER_ID, addressID, type);
|
|
219
218
|
}
|
|
220
|
-
let street;
|
|
221
|
-
let locality;
|
|
219
|
+
let street = null;
|
|
220
|
+
let locality = null;
|
|
222
221
|
for (const href of componentHrefs(address)) {
|
|
223
222
|
const key = componentJoinKey(href);
|
|
224
223
|
const feature = key ? referenced.get(key) : undefined;
|
|
@@ -238,12 +237,12 @@ function composeRow(address, referenced, options = {}) {
|
|
|
238
237
|
// reads `1stOrder` while the reference's position states no level at all.
|
|
239
238
|
}
|
|
240
239
|
if (!locality)
|
|
241
|
-
return
|
|
240
|
+
return null;
|
|
242
241
|
const byType = designatorsByType(address);
|
|
243
242
|
const house = dutchHouseNumber(byType);
|
|
244
243
|
const postcode = designator(byType, "postalDeliveryIdentifier");
|
|
245
244
|
if (!street && !postcode)
|
|
246
|
-
return
|
|
245
|
+
return null;
|
|
247
246
|
const components = {};
|
|
248
247
|
if (house) {
|
|
249
248
|
components.house_number = house;
|
|
@@ -257,7 +256,7 @@ function composeRow(address, referenced, options = {}) {
|
|
|
257
256
|
components.locality = locality;
|
|
258
257
|
const rendered = formatAddressRow(components, "NL", { singleLine: true });
|
|
259
258
|
if (!rendered)
|
|
260
|
-
return
|
|
259
|
+
return null;
|
|
261
260
|
const { raw, components: aligned } = rendered;
|
|
262
261
|
return {
|
|
263
262
|
raw,
|