@mailwoman/corpus 10.2.2 → 10.4.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/README.md +17 -17
- package/data/PROVENANCE.md +273 -273
- package/data/address-source-register.json +517 -23
- package/data/license-decisions.json +120 -0
- package/data/licenses/PROVENANCE.md +5 -5
- package/data/licenses/cdla-permissive-2.0.md +6 -6
- package/data/licenses/geonames-publication.md +5 -5
- package/data/licenses/licence-ouverte-2.0.md +3 -3
- package/data/licenses/national-address-database.md +12 -12
- package/data/licenses/nlod-2.0.md +3 -3
- package/data/licenses/sirene-publication.md +13 -6
- package/data/licenses/whosonfirst-licenses.md +4 -4
- package/data/source-resolutions.json +11 -0
- package/lib/adapters/cordis/adapter.ts +8 -8
- package/lib/adapters/gleif/adapter.ts +7 -8
- package/lib/adapters/po-box/adapter.ts +1 -1
- package/lib/adapters/source-id.ts +1 -1
- package/lib/adapters.ts +2 -2
- package/lib/au/adapters/gnaf/adapter.ts +1 -1
- package/lib/be/adapters/brussels/adapter.ts +2 -2
- package/lib/be/adapters/vlaanderen/adapter.ts +1 -1
- package/lib/build.ts +1 -1
- package/lib/cz/adapters/cuzk/adapter.ts +1 -1
- package/lib/cz/tools/fetch/cuzk.ts +4 -4
- package/lib/de/recipes/locale.ts +1 -1
- package/lib/dk/adapters/inspire/adapter.ts +1 -1
- package/lib/ee/tools/fetch/ads.ts +2 -2
- package/lib/es/adapters/bizkaia/adapter.ts +1 -1
- package/lib/es/adapters/navarra/adapter.ts +2 -2
- package/lib/es/cadastre.ts +2 -2
- package/lib/es/tools/fetch/bizkaia.ts +7 -7
- package/lib/es/tools/fetch/catastro.ts +6 -6
- package/lib/es/tools/fetch/navarra.ts +4 -4
- package/lib/fingerprints.ts +3 -3
- package/lib/fr/adapters/finess/adapter.ts +6 -5
- package/lib/fr/adapters/finess/voie-type.ts +1 -1
- package/lib/fr/tools/fetch/annuaire-education.ts +3 -3
- package/lib/gb/constituent-country.ts +52 -0
- package/lib/inspire/address.ts +3 -3
- package/lib/international/recipes/locale.ts +41 -7
- package/lib/it/adapters/anac/adapter.ts +4 -3
- package/lib/jp/adapters/wof-admin/adapter.ts +2 -2
- package/lib/kr/adapters/juso/label-rows.ts +1 -1
- package/lib/kr/adapters/localdata/key-index.ts +2 -1
- package/lib/lu/adapters/bd-adresses/adapter.ts +1 -1
- package/lib/nl/adapters/kadaster/adapter.ts +2 -2
- package/lib/nl/tools/fetch/kadaster.ts +1 -1
- package/lib/parquet/shuffle.ts +2 -2
- package/lib/parquet/span-sql.ts +8 -6
- package/lib/parquet/streams.ts +1 -1
- package/lib/parquet/writers.ts +2 -2
- package/lib/pl/tools/fetch/emuia.ts +2 -2
- package/lib/recipes/scaffold.ts +2 -2
- package/lib/recipes/sources.ts +3 -3
- package/lib/recipes/sub/venue/render.ts +1 -1
- package/lib/recipes/sub/venue/sources.ts +4 -3
- package/lib/recipes/sub/venue.ts +4 -3
- package/lib/recipes/venue.ts +11 -11
- package/lib/ro/adapters/retea-scolara/adapter.ts +2 -2
- package/lib/runner.ts +3 -3
- package/lib/sk/tools/fetch/inspire.ts +3 -3
- package/lib/source-register/effective-manifest.ts +2 -2
- package/lib/source-register/types.ts +2 -2
- package/lib/subvenue/harvest.ts +6 -5
- package/lib/subvenue/promotions.ts +3 -3
- package/lib/subvenue/table.ts +6 -6
- package/lib/surfaces/locale.ts +1 -1
- package/lib/synthesizers/anchor-absorption.ts +1 -1
- package/lib/synthesizers/boundary-stress.ts +3 -2
- package/lib/synthesizers/no-street.ts +1 -1
- package/lib/synthesizers/po-box.ts +1 -1
- package/lib/synthesizers/tail.ts +2 -2
- package/lib/test-kit/corpus-recipe.ts +1 -1
- package/lib/tools/align-canonical.ts +3 -2
- package/lib/tools/audit.ts +1 -1
- package/lib/tools/corpus-stats.ts +1 -1
- package/lib/tools/fetch/download/network.ts +1 -1
- package/lib/tools/fetch/geonames/dump.ts +1 -1
- package/lib/tools/fetch/gleif.ts +1 -1
- package/lib/tools/fetch/header.ts +1 -1
- package/lib/tools/fetch/inspire-addresses.ts +1 -1
- package/lib/tools/fetch/vlaanderen-ad.ts +1 -1
- package/lib/tools/fetch/wfs-harvest.ts +6 -6
- package/lib/tools/fetch/zip-archive.ts +2 -2
- package/lib/tools/golden/expand.ts +1 -1
- package/lib/tools/golden/promote.ts +3 -3
- package/lib/tools/golden/relabel-street/directory.ts +2 -1
- package/lib/tools/lint/recipe-output/vocab.ts +2 -2
- package/lib/tools/overlay/manifest.ts +62 -10
- package/lib/tools/overlay/split-slice.ts +2 -10
- package/lib/tools/postcode-triples.ts +2 -2
- package/lib/tools/sub/venue/head-nouns.ts +4 -3
- package/lib/types.ts +3 -3
- package/lib/us/adapters/state/tx-notaries/adapter.ts +1 -1
- package/lib/us/adapters/usgov/irs-bmf/adapter.ts +2 -2
- package/lib/us/adapters/usgov/nppes/adapter.ts +1 -1
- package/lib/us/synthesizers/intersection.ts +4 -4
- package/lib/us/synthesizers/street.ts +3 -3
- package/lib/us/tools/fetch/nad.ts +2 -2
- package/lib/utils/split.ts +59 -6
- package/lib/utils/wof-json.ts +1 -1
- package/out/adapters/cordis/adapter.d.ts +7 -7
- package/out/adapters/cordis/adapter.js +8 -8
- package/out/adapters/cordis/adapter.js.map +1 -1
- package/out/adapters/gleif/adapter.d.ts +7 -8
- package/out/adapters/gleif/adapter.d.ts.map +1 -1
- package/out/adapters/gleif/adapter.js +7 -8
- package/out/adapters/gleif/adapter.js.map +1 -1
- package/out/adapters/po-box/adapter.d.ts +1 -1
- package/out/adapters/source-id.d.ts +1 -1
- package/out/adapters/source-id.js +1 -1
- package/out/adapters.d.ts +2 -2
- package/out/adapters.js +2 -2
- package/out/au/adapters/gnaf/adapter.js +1 -1
- package/out/be/adapters/brussels/adapter.d.ts +1 -1
- package/out/be/adapters/brussels/adapter.js +2 -2
- package/out/be/adapters/vlaanderen/adapter.d.ts +1 -1
- package/out/build.js +1 -1
- package/out/build.js.map +1 -1
- package/out/cz/adapters/cuzk/adapter.d.ts +1 -1
- package/out/cz/adapters/cuzk/adapter.js +1 -1
- package/out/cz/tools/fetch/cuzk.d.ts +2 -2
- package/out/cz/tools/fetch/cuzk.js +2 -2
- package/out/de/recipes/locale.d.ts +1 -1
- package/out/de/recipes/locale.js +1 -1
- package/out/dk/adapters/inspire/adapter.js +1 -1
- package/out/ee/tools/fetch/ads.d.ts +2 -2
- package/out/ee/tools/fetch/ads.js +1 -1
- package/out/es/adapters/bizkaia/adapter.js +1 -1
- package/out/es/adapters/navarra/adapter.d.ts +2 -2
- package/out/es/adapters/navarra/adapter.js +2 -2
- package/out/es/cadastre.d.ts +2 -2
- package/out/es/cadastre.js +2 -2
- package/out/es/tools/fetch/bizkaia.d.ts +5 -5
- package/out/es/tools/fetch/bizkaia.js +5 -5
- package/out/es/tools/fetch/catastro.d.ts +4 -4
- package/out/es/tools/fetch/catastro.js +2 -2
- package/out/es/tools/fetch/navarra.d.ts +2 -2
- package/out/es/tools/fetch/navarra.js +2 -2
- package/out/fingerprints.d.ts +3 -3
- package/out/fingerprints.js +3 -3
- package/out/fr/adapters/finess/adapter.d.ts +6 -5
- package/out/fr/adapters/finess/adapter.d.ts.map +1 -1
- package/out/fr/adapters/finess/adapter.js +6 -5
- package/out/fr/adapters/finess/adapter.js.map +1 -1
- package/out/fr/adapters/finess/voie-type.d.ts +1 -1
- package/out/fr/adapters/finess/voie-type.js +1 -1
- package/out/fr/tools/fetch/annuaire-education.d.ts +3 -3
- package/out/fr/tools/fetch/annuaire-education.js +3 -3
- package/out/gb/constituent-country.d.ts +36 -0
- package/out/gb/constituent-country.d.ts.map +1 -0
- package/out/gb/constituent-country.js +30 -0
- package/out/gb/constituent-country.js.map +1 -0
- package/out/inspire/address.d.ts +3 -3
- package/out/inspire/address.js +3 -3
- package/out/international/recipes/locale.d.ts +6 -0
- package/out/international/recipes/locale.d.ts.map +1 -1
- package/out/international/recipes/locale.js +29 -7
- package/out/international/recipes/locale.js.map +1 -1
- package/out/it/adapters/anac/adapter.d.ts +1 -1
- package/out/it/adapters/anac/adapter.d.ts.map +1 -1
- package/out/it/adapters/anac/adapter.js +4 -3
- package/out/it/adapters/anac/adapter.js.map +1 -1
- package/out/jp/adapters/wof-admin/adapter.d.ts +2 -2
- package/out/jp/adapters/wof-admin/adapter.js +2 -2
- package/out/kr/adapters/juso/label-rows.d.ts +1 -1
- package/out/kr/adapters/localdata/key-index.d.ts +2 -1
- package/out/kr/adapters/localdata/key-index.d.ts.map +1 -1
- package/out/kr/adapters/localdata/key-index.js +2 -1
- package/out/kr/adapters/localdata/key-index.js.map +1 -1
- package/out/lu/adapters/bd-adresses/adapter.d.ts +1 -1
- package/out/lu/adapters/bd-adresses/adapter.js +1 -1
- package/out/nl/adapters/kadaster/adapter.js +2 -2
- package/out/nl/tools/fetch/kadaster.d.ts +1 -1
- package/out/nl/tools/fetch/kadaster.js +1 -1
- package/out/parquet/shuffle.d.ts +2 -2
- package/out/parquet/shuffle.js +2 -2
- package/out/parquet/span-sql.d.ts +8 -6
- package/out/parquet/span-sql.d.ts.map +1 -1
- package/out/parquet/span-sql.js +8 -6
- package/out/parquet/span-sql.js.map +1 -1
- package/out/parquet/streams.d.ts +1 -1
- package/out/parquet/writers.d.ts +2 -2
- package/out/parquet/writers.js +1 -1
- package/out/pl/tools/fetch/emuia.d.ts +2 -2
- package/out/recipes/scaffold.d.ts +2 -2
- package/out/recipes/sources.d.ts +2 -2
- package/out/recipes/sources.js +3 -3
- package/out/recipes/sources.js.map +1 -1
- package/out/recipes/sub/venue/render.d.ts +1 -1
- package/out/recipes/sub/venue/render.js +1 -1
- package/out/recipes/sub/venue/sources.d.ts +4 -3
- package/out/recipes/sub/venue/sources.d.ts.map +1 -1
- package/out/recipes/sub/venue/sources.js +4 -3
- package/out/recipes/sub/venue/sources.js.map +1 -1
- package/out/recipes/sub/venue.d.ts +3 -2
- package/out/recipes/sub/venue.d.ts.map +1 -1
- package/out/recipes/sub/venue.js +2 -2
- package/out/recipes/sub/venue.js.map +1 -1
- package/out/recipes/venue.d.ts +7 -6
- package/out/recipes/venue.d.ts.map +1 -1
- package/out/recipes/venue.js +11 -10
- package/out/recipes/venue.js.map +1 -1
- package/out/ro/adapters/retea-scolara/adapter.d.ts +2 -2
- package/out/ro/adapters/retea-scolara/adapter.js +2 -2
- package/out/runner.d.ts +3 -3
- package/out/runner.js +2 -2
- package/out/sk/tools/fetch/inspire.d.ts +3 -3
- package/out/sk/tools/fetch/inspire.js +1 -1
- package/out/source-register/effective-manifest.d.ts +2 -2
- package/out/source-register/types.d.ts +2 -2
- package/out/subvenue/harvest.d.ts +4 -3
- package/out/subvenue/harvest.d.ts.map +1 -1
- package/out/subvenue/harvest.js +6 -5
- package/out/subvenue/harvest.js.map +1 -1
- package/out/subvenue/promotions.d.ts +2 -2
- package/out/subvenue/promotions.js +3 -3
- package/out/subvenue/promotions.js.map +1 -1
- package/out/subvenue/table.d.ts +6 -6
- package/out/subvenue/table.js +1 -1
- package/out/surfaces/locale.d.ts +1 -1
- package/out/surfaces/locale.js +1 -1
- package/out/synthesizers/boundary-stress.d.ts.map +1 -1
- package/out/synthesizers/boundary-stress.js +2 -1
- package/out/synthesizers/boundary-stress.js.map +1 -1
- package/out/synthesizers/tail.d.ts +2 -2
- package/out/synthesizers/tail.js +2 -2
- package/out/test-kit/corpus-recipe.d.ts +1 -1
- package/out/test-kit/corpus-recipe.js +1 -1
- package/out/tools/align-canonical.d.ts.map +1 -1
- package/out/tools/align-canonical.js +3 -2
- package/out/tools/align-canonical.js.map +1 -1
- package/out/tools/audit.js +1 -1
- package/out/tools/corpus-stats.d.ts +1 -1
- package/out/tools/fetch/download/network.d.ts +1 -1
- package/out/tools/fetch/download/network.js +1 -1
- package/out/tools/fetch/geonames/dump.d.ts +1 -1
- package/out/tools/fetch/geonames/dump.js +1 -1
- package/out/tools/fetch/gleif.d.ts +1 -1
- package/out/tools/fetch/gleif.js +1 -1
- package/out/tools/fetch/header.d.ts +1 -1
- package/out/tools/fetch/header.js +1 -1
- package/out/tools/fetch/inspire-addresses.d.ts +1 -1
- package/out/tools/fetch/vlaanderen-ad.d.ts +1 -1
- package/out/tools/fetch/wfs-harvest.d.ts +3 -3
- package/out/tools/fetch/wfs-harvest.js +4 -4
- package/out/tools/fetch/wfs-harvest.js.map +1 -1
- package/out/tools/fetch/zip-archive.d.ts +2 -2
- package/out/tools/fetch/zip-archive.js +2 -2
- package/out/tools/golden/expand.js +1 -1
- package/out/tools/golden/expand.js.map +1 -1
- package/out/tools/golden/promote.d.ts +1 -1
- package/out/tools/golden/promote.js +3 -3
- package/out/tools/golden/promote.js.map +1 -1
- package/out/tools/golden/relabel-street/directory.d.ts +2 -1
- package/out/tools/golden/relabel-street/directory.d.ts.map +1 -1
- package/out/tools/golden/relabel-street/directory.js.map +1 -1
- package/out/tools/lint/recipe-output/vocab.js +2 -2
- package/out/tools/overlay/manifest.d.ts +15 -2
- package/out/tools/overlay/manifest.d.ts.map +1 -1
- package/out/tools/overlay/manifest.js +41 -10
- package/out/tools/overlay/manifest.js.map +1 -1
- package/out/tools/overlay/split-slice.d.ts.map +1 -1
- package/out/tools/overlay/split-slice.js +2 -9
- package/out/tools/overlay/split-slice.js.map +1 -1
- package/out/tools/postcode-triples.d.ts +1 -1
- package/out/tools/postcode-triples.js +2 -2
- package/out/tools/postcode-triples.js.map +1 -1
- package/out/tools/sub/venue/head-nouns.d.ts +1 -1
- package/out/tools/sub/venue/head-nouns.d.ts.map +1 -1
- package/out/tools/sub/venue/head-nouns.js +4 -3
- package/out/tools/sub/venue/head-nouns.js.map +1 -1
- package/out/types.d.ts +3 -3
- package/out/types.js +1 -1
- package/out/us/adapters/state/tx-notaries/adapter.d.ts +1 -1
- package/out/us/adapters/state/tx-notaries/adapter.js +1 -1
- package/out/us/adapters/usgov/irs-bmf/adapter.d.ts +1 -1
- package/out/us/adapters/usgov/irs-bmf/adapter.js +2 -2
- package/out/us/synthesizers/intersection.js +4 -4
- package/out/us/synthesizers/intersection.js.map +1 -1
- package/out/us/synthesizers/street.js +3 -3
- package/out/us/synthesizers/street.js.map +1 -1
- package/out/us/tools/fetch/nad.d.ts +2 -2
- package/out/us/tools/fetch/nad.js +2 -2
- package/out/utils/split.d.ts +21 -0
- package/out/utils/split.d.ts.map +1 -1
- package/out/utils/split.js +49 -5
- package/out/utils/split.js.map +1 -1
- package/out/utils/wof-json.d.ts +1 -1
- package/out/utils/wof-json.js +1 -1
- package/package.json +14 -14
package/out/es/cadastre.js
CHANGED
|
@@ -61,8 +61,8 @@ export function spanishHouseNumber(byType, ...types) {
|
|
|
61
61
|
* `ES.SDGC.PD.55.101.` and `ES.GFA.PD.059.`, against no feature of that id.
|
|
62
62
|
*
|
|
63
63
|
* Those truncated references are the only unresolvable ones measured in either file.
|
|
64
|
-
* A reader taking every unresolved reference as an absence would also swallow a
|
|
65
|
-
*
|
|
64
|
+
* A reader taking every unresolved reference as an absence would also swallow a broken join,
|
|
65
|
+
* so the two are separated here and every other unresolved reference raises.
|
|
66
66
|
*/
|
|
67
67
|
export function referenceStatesNoValue(key) {
|
|
68
68
|
return key.trim().endsWith(".");
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
* archives therefore reads every address in the province without its street, its postcode or
|
|
17
17
|
* its municipality. This harvest acquires both services into one directory for that reason.
|
|
18
18
|
*
|
|
19
|
-
* Each component type is read in one request
|
|
19
|
+
* Each component type is read in one request. This service serves a type no other way. Its
|
|
20
20
|
* capabilities document states `ImplementsResultPaging` as `FALSE` and `CountDefault` as `1000`, so
|
|
21
21
|
* a reader that paged a type would receive the first page again. The harvest therefore asks
|
|
22
|
-
* `RESULTTYPE=hits` for the type's count and then asks for that
|
|
22
|
+
* `RESULTTYPE=hits` for the type's count and then asks for that number of features in one `GetFeature`,
|
|
23
23
|
* and {@linkcode fetchBizkaiaComponentDocument} raises where the document returns fewer than the
|
|
24
24
|
* count. A truncated component document is the failure that would otherwise reach the adapter as
|
|
25
25
|
* an unresolved reference per address.
|
|
@@ -176,7 +176,7 @@ export interface ESBizkaiaHarvestManifest extends SourceCollectionManifest {
|
|
|
176
176
|
*/
|
|
177
177
|
feed_updated: string | null;
|
|
178
178
|
/**
|
|
179
|
-
*
|
|
179
|
+
* The number of municipalities the service document listed when this manifest was written.
|
|
180
180
|
*
|
|
181
181
|
* The denominator for `files`, read from the feed on each run rather than fixed here.
|
|
182
182
|
*/
|
|
@@ -201,7 +201,7 @@ export interface HarvestESBizkaiaOptions {
|
|
|
201
201
|
*/
|
|
202
202
|
municipalities?: readonly string[];
|
|
203
203
|
/**
|
|
204
|
-
* Stop after this
|
|
204
|
+
* Stop after this number of municipalities, counting the ones already on disk.
|
|
205
205
|
*/
|
|
206
206
|
limit?: number;
|
|
207
207
|
/**
|
|
@@ -229,7 +229,7 @@ export interface HarvestESBizkaiaOptions {
|
|
|
229
229
|
/**
|
|
230
230
|
* Reads one component feature type whole and writes it beside the archives.
|
|
231
231
|
*
|
|
232
|
-
* Two requests per type: `RESULTTYPE=hits` for the count, then one `GetFeature` for that
|
|
232
|
+
* Two requests per type: `RESULTTYPE=hits` for the count, then one `GetFeature` for that number of features.
|
|
233
233
|
* `COUNT` is asked one above the stated count, so a service whose hits response
|
|
234
234
|
* undercounts its own matches answers with more features than it claimed
|
|
235
235
|
* rather than with exactly the number the harvest asked for.
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
* archives therefore reads every address in the province without its street, its postcode or
|
|
17
17
|
* its municipality. This harvest acquires both services into one directory for that reason.
|
|
18
18
|
*
|
|
19
|
-
* Each component type is read in one request
|
|
19
|
+
* Each component type is read in one request. This service serves a type no other way. Its
|
|
20
20
|
* capabilities document states `ImplementsResultPaging` as `FALSE` and `CountDefault` as `1000`, so
|
|
21
21
|
* a reader that paged a type would receive the first page again. The harvest therefore asks
|
|
22
|
-
* `RESULTTYPE=hits` for the type's count and then asks for that
|
|
22
|
+
* `RESULTTYPE=hits` for the type's count and then asks for that number of features in one `GetFeature`,
|
|
23
23
|
* and {@linkcode fetchBizkaiaComponentDocument} raises where the document returns fewer than the
|
|
24
24
|
* count. A truncated component document is the failure that would otherwise reach the adapter as
|
|
25
25
|
* an unresolved reference per address.
|
|
@@ -103,11 +103,11 @@ export const ES_BIZKAIA_REQUEST_INTERVAL_MS = 250;
|
|
|
103
103
|
*/
|
|
104
104
|
const BODY_TIMEOUT_MS = 600_000;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* The number of archives written between two manifest writes.
|
|
107
107
|
*
|
|
108
108
|
* The manifest is what makes an interrupted harvest resumable, and writing it
|
|
109
109
|
* after every archive would rewrite the whole document once per municipality.
|
|
110
|
-
* At this interval an interruption re-fetches at most this
|
|
110
|
+
* At this interval an interruption re-fetches at most this number of archives already on disk.
|
|
111
111
|
*/
|
|
112
112
|
const MANIFEST_INTERVAL = 25;
|
|
113
113
|
/**
|
|
@@ -211,7 +211,7 @@ async function archiveIsCurrent(recorded, dataset, path, verifyDigests) {
|
|
|
211
211
|
/**
|
|
212
212
|
* Reads one component feature type whole and writes it beside the archives.
|
|
213
213
|
*
|
|
214
|
-
* Two requests per type: `RESULTTYPE=hits` for the count, then one `GetFeature` for that
|
|
214
|
+
* Two requests per type: `RESULTTYPE=hits` for the count, then one `GetFeature` for that number of features.
|
|
215
215
|
* `COUNT` is asked one above the stated count, so a service whose hits response
|
|
216
216
|
* undercounts its own matches answers with more features than it claimed
|
|
217
217
|
* rather than with exactly the number the harvest asked for.
|
|
@@ -194,18 +194,18 @@ export interface ESCatastroArchiveEntry extends SourceManifest {
|
|
|
194
194
|
*/
|
|
195
195
|
export interface ESCatastroHarvestManifest extends SourceCollectionManifest {
|
|
196
196
|
/**
|
|
197
|
-
*
|
|
197
|
+
* The number of territorial offices the service document listed, read from the feed on each run.
|
|
198
198
|
*/
|
|
199
199
|
provinces_listed: number;
|
|
200
200
|
/**
|
|
201
|
-
*
|
|
201
|
+
* The number of those offices this run read a province feed for.
|
|
202
202
|
*
|
|
203
203
|
* A bounded run reads fewer, so this is the denominator for `municipalities_listed`
|
|
204
204
|
* rather than a count of the country.
|
|
205
205
|
*/
|
|
206
206
|
provinces_harvested: number;
|
|
207
207
|
/**
|
|
208
|
-
*
|
|
208
|
+
* The number of municipalities the province feeds this run read listed between them.
|
|
209
209
|
*/
|
|
210
210
|
municipalities_listed: number;
|
|
211
211
|
files: ESCatastroArchiveEntry[];
|
|
@@ -230,7 +230,7 @@ export interface HarvestESCatastroOptions {
|
|
|
230
230
|
*/
|
|
231
231
|
municipalities?: readonly string[];
|
|
232
232
|
/**
|
|
233
|
-
* Stop after this
|
|
233
|
+
* Stop after this number of municipalities, counting the ones already on disk.
|
|
234
234
|
*/
|
|
235
235
|
limit?: number;
|
|
236
236
|
/**
|
|
@@ -96,11 +96,11 @@ export const ES_CATASTRO_REQUEST_INTERVAL_MS = 250;
|
|
|
96
96
|
*/
|
|
97
97
|
const SLUG = ES_CATASTRO_ADAPTER_ID;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* The number of archives written between two manifest writes.
|
|
100
100
|
*
|
|
101
101
|
* The manifest is what makes an interrupted harvest resumable, and writing it after every
|
|
102
102
|
* archive would rewrite a document with one entry per municipality once per municipality.
|
|
103
|
-
* At this interval an interruption re-fetches at most this
|
|
103
|
+
* At this interval an interruption re-fetches at most this number of archives that are already on disk.
|
|
104
104
|
*/
|
|
105
105
|
const MANIFEST_INTERVAL = 25;
|
|
106
106
|
/**
|
|
@@ -125,7 +125,7 @@ export interface ESNavarraArchiveEntry extends SourceManifest {
|
|
|
125
125
|
*/
|
|
126
126
|
export interface ESNavarraHarvestManifest extends SourceCollectionManifest {
|
|
127
127
|
/**
|
|
128
|
-
*
|
|
128
|
+
* The number of partitions the service document listed when this manifest was written.
|
|
129
129
|
*
|
|
130
130
|
* The denominator for `files`, read from the feed on each run rather than fixed here.
|
|
131
131
|
*/
|
|
@@ -145,7 +145,7 @@ export interface HarvestESNavarraOptions {
|
|
|
145
145
|
*/
|
|
146
146
|
partitions?: readonly string[];
|
|
147
147
|
/**
|
|
148
|
-
* Stop after this
|
|
148
|
+
* Stop after this number of partitions, counting the ones already on disk.
|
|
149
149
|
*/
|
|
150
150
|
limit?: number;
|
|
151
151
|
/**
|
|
@@ -81,10 +81,10 @@ export const ES_NAVARRA_REQUEST_INTERVAL_MS = 250;
|
|
|
81
81
|
*/
|
|
82
82
|
const SLUG = ES_NAVARRA_ADAPTER_ID;
|
|
83
83
|
/**
|
|
84
|
-
*
|
|
84
|
+
* The number of archives written between two manifest writes.
|
|
85
85
|
*
|
|
86
86
|
* The manifest is what makes an interrupted harvest resumable.
|
|
87
|
-
* At this interval an interruption re-fetches at most this
|
|
87
|
+
* At this interval an interruption re-fetches at most this number of archives that are already on disk.
|
|
88
88
|
*/
|
|
89
89
|
const MANIFEST_INTERVAL = 25;
|
|
90
90
|
/**
|
package/out/fingerprints.d.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
* @file A fixed-capacity set of 128-bit fingerprints in one flat `Uint32Array`.
|
|
6
6
|
*
|
|
7
|
-
* The adapter runner deduplicates by holding every key it has seen. A V8 `Set`
|
|
8
|
-
* entry
|
|
7
|
+
* The adapter runner deduplicates by holding every key it has seen. A V8 `Set` throws on its 16,777,217th
|
|
8
|
+
* entry, so the runner capped itself at 10,000,000 keys. Three adapters passed that cap in
|
|
9
9
|
* `v0.7.0-de-holdout`. The duplicate census over that build measured what the cap costs: of the
|
|
10
10
|
* 2,491,399 duplicate rows the three adapters wrote, 1,490,992 duplicate a key first seen after the cap.
|
|
11
11
|
* A membership test on a capped set cannot refuse those rows.
|
|
@@ -47,7 +47,7 @@ export declare class FingerprintSet {
|
|
|
47
47
|
constructor(slotsLog2: number);
|
|
48
48
|
get size(): number;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* The number of keys this table accepts before {@linkcode add} throws.
|
|
51
51
|
*/
|
|
52
52
|
get limit(): number;
|
|
53
53
|
get slots(): number;
|
package/out/fingerprints.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
* @file A fixed-capacity set of 128-bit fingerprints in one flat `Uint32Array`.
|
|
6
6
|
*
|
|
7
|
-
* The adapter runner deduplicates by holding every key it has seen. A V8 `Set`
|
|
8
|
-
* entry
|
|
7
|
+
* The adapter runner deduplicates by holding every key it has seen. A V8 `Set` throws on its 16,777,217th
|
|
8
|
+
* entry, so the runner capped itself at 10,000,000 keys. Three adapters passed that cap in
|
|
9
9
|
* `v0.7.0-de-holdout`. The duplicate census over that build measured what the cap costs: of the
|
|
10
10
|
* 2,491,399 duplicate rows the three adapters wrote, 1,490,992 duplicate a key first seen after the cap.
|
|
11
11
|
* A membership test on a capped set cannot refuse those rows.
|
|
@@ -66,7 +66,7 @@ export class FingerprintSet {
|
|
|
66
66
|
return this.#size;
|
|
67
67
|
}
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
69
|
+
* The number of keys this table accepts before {@linkcode add} throws.
|
|
70
70
|
*/
|
|
71
71
|
get limit() {
|
|
72
72
|
return this.#limit;
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
*
|
|
33
33
|
* Every FINESS establishment is an organization's site: a hospital, a pharmacy, a laboratory, a
|
|
34
34
|
* service office. Three categories house the people they serve in a private dwelling. In `462`
|
|
35
|
-
* Lieux de vie et d'accueil the staff live with the people they receive. A `238`
|
|
36
|
-
*
|
|
35
|
+
* Lieux de vie et d'accueil the staff live with the people they receive. A FINESS category `238`
|
|
36
|
+
* establishment, specialized family reception, places patients with host families, as a `236` Service de placement familial
|
|
37
37
|
* does. An address in those three can be a family's home, so they are refused under
|
|
38
38
|
* {@linkcode FinessRefusal.FamilyPlacement}, as is an establishment whose name states family
|
|
39
39
|
* placement or a lieu de vie under another category. A row whose street type is TRE-R35's `CHEZ`,
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
*
|
|
57
57
|
* A digit in `voie` is refused under {@linkcode FinessRefusal.StreetDigitUnplaced} unless the digits
|
|
58
58
|
* name the street, as a numbered route (`NATIONALE 2`) or a date (`DU 22 MAI`) does. The number has
|
|
59
|
-
* its own field, so a digit left in the name is a box, a building or a door: `VALLÉE 3 BP 208`,
|
|
59
|
+
* its own field, so a digit left in the street name is a box, a building or a door: `VALLÉE 3 BP 208`,
|
|
60
60
|
* `DIAKA BAT A4 PORTE 2`.
|
|
61
61
|
*
|
|
62
62
|
* ## The lieu-dit and box line, and the routing line
|
|
@@ -121,8 +121,9 @@ export declare const FINESS_COUNTRY_BY_POSTCODE: Readonly<Record<string, string>
|
|
|
121
121
|
*/
|
|
122
122
|
export declare const FR_FINESS_COUNTRIES: readonly string[];
|
|
123
123
|
/**
|
|
124
|
-
* The establishment categories whose address can be a private dwelling:
|
|
125
|
-
*
|
|
124
|
+
* The establishment categories whose address can be a private dwelling: FINESS
|
|
125
|
+
* categories `462` (lieux de vie et d'accueil), `238` (specialized family reception)
|
|
126
|
+
* and `236` (services de placement familial).
|
|
126
127
|
*/
|
|
127
128
|
export declare const FINESS_FAMILY_PLACEMENT_CATEGORIES: ReadonlySet<string>;
|
|
128
129
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/fr/adapters/finess/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4FG;AAkBH,OAAO,EAGN,KAAK,YAAY,EAEjB,KAAK,aAAa,EAElB,MAAM,QAAQ,CAAA;AAEf;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,uBAAuB,CAAA;AAExD;;GAEG;AACH,eAAO,MAAM,iBAAiB,wBAAwB,CAAA;AAEtD;;GAEG;AACH,eAAO,MAAM,qBAAqB,wIACqF,CAAA;AAEvH;;;;GAIG;AACH,eAAO,MAAM,6BAA6B,E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CAAC,CAAA;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GACtB;IAAE,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,CAAA;CAAE,GAC5E;IAAE,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAA;CAAE,CAAA;AA2BtC;;GAEG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQlF;AAkED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,aAAa,CAqGxE;AAED,wBAAgB,mBAAmB,IAAI,aAAa,CA0DnD;AA4BD;;GAEG;AACH,eAAO,MAAM,aAAa,eAAwB,CAAA"}
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
*
|
|
33
33
|
* Every FINESS establishment is an organization's site: a hospital, a pharmacy, a laboratory, a
|
|
34
34
|
* service office. Three categories house the people they serve in a private dwelling. In `462`
|
|
35
|
-
* Lieux de vie et d'accueil the staff live with the people they receive. A `238`
|
|
36
|
-
*
|
|
35
|
+
* Lieux de vie et d'accueil the staff live with the people they receive. A FINESS category `238`
|
|
36
|
+
* establishment, specialized family reception, places patients with host families, as a `236` Service de placement familial
|
|
37
37
|
* does. An address in those three can be a family's home, so they are refused under
|
|
38
38
|
* {@linkcode FinessRefusal.FamilyPlacement}, as is an establishment whose name states family
|
|
39
39
|
* placement or a lieu de vie under another category. A row whose street type is TRE-R35's `CHEZ`,
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
*
|
|
57
57
|
* A digit in `voie` is refused under {@linkcode FinessRefusal.StreetDigitUnplaced} unless the digits
|
|
58
58
|
* name the street, as a numbered route (`NATIONALE 2`) or a date (`DU 22 MAI`) does. The number has
|
|
59
|
-
* its own field, so a digit left in the name is a box, a building or a door: `VALLÉE 3 BP 208`,
|
|
59
|
+
* its own field, so a digit left in the street name is a box, a building or a door: `VALLÉE 3 BP 208`,
|
|
60
60
|
* `DIAKA BAT A4 PORTE 2`.
|
|
61
61
|
*
|
|
62
62
|
* ## The lieu-dit and box line, and the routing line
|
|
@@ -144,8 +144,9 @@ export const FR_FINESS_COUNTRIES = [
|
|
|
144
144
|
...new Set([...Object.values(FINESS_COUNTRY_BY_DEPARTEMENT), ...Object.values(FINESS_COUNTRY_BY_POSTCODE)]),
|
|
145
145
|
];
|
|
146
146
|
/**
|
|
147
|
-
* The establishment categories whose address can be a private dwelling:
|
|
148
|
-
*
|
|
147
|
+
* The establishment categories whose address can be a private dwelling: FINESS
|
|
148
|
+
* categories `462` (lieux de vie et d'accueil), `238` (specialized family reception)
|
|
149
|
+
* and `236` (services de placement familial).
|
|
149
150
|
*/
|
|
150
151
|
export const FINESS_FAMILY_PLACEMENT_CATEGORIES = new Set(["236", "238", "462"]);
|
|
151
152
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/fr/adapters/finess/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4FG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,WAAW,EAAwB,MAAM,SAAS,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAC1D,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,qBAAq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DAAgD,CAAC,CAAA;IACrH,CAAC;IAED,OAAO,IAAI,CAAC,MAAM,CAAC,CAAA;AACpB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,EAAE,CAAA"}
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
*
|
|
36
36
|
* `VAL` keeps the code as its word.
|
|
37
37
|
* TRE-R35 displays it as `Vallée, vallon`, two words the code does not choose between,
|
|
38
|
-
* and `Val` is itself the written word
|
|
38
|
+
* and `Val` is itself the written word in French place names such as `Val-d'Isère`.
|
|
39
39
|
*/
|
|
40
40
|
export declare const TRE_R35_VOIE_TYPES: Readonly<Record<string, string | null>>;
|
|
41
41
|
/**
|
|
@@ -38,7 +38,7 @@ import { decomposeFrStreet } from "#fr/street-decompose";
|
|
|
38
38
|
*
|
|
39
39
|
* `VAL` keeps the code as its word.
|
|
40
40
|
* TRE-R35 displays it as `Vallée, vallon`, two words the code does not choose between,
|
|
41
|
-
* and `Val` is itself the written word
|
|
41
|
+
* and `Val` is itself the written word in French place names such as `Val-d'Isère`.
|
|
42
42
|
*/
|
|
43
43
|
export const TRE_R35_VOIE_TYPES = {
|
|
44
44
|
ANSE: "anse",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* Two checks keep a short transfer from reading as a small directory. The records endpoint is asked
|
|
17
17
|
* for the `total_count` of the same filter before the export, and the written file must hold exactly
|
|
18
|
-
* that
|
|
18
|
+
* that number of lines. A mismatch removes the file and fails the fetch. A re-run compares the catalog
|
|
19
19
|
* record's `modified` against the manifest and makes no transfer when they agree and the file is on
|
|
20
20
|
* disk at the recorded length.
|
|
21
21
|
*/
|
|
@@ -49,7 +49,7 @@ export declare function annuaireOverseasFilter(): string;
|
|
|
49
49
|
*/
|
|
50
50
|
export declare function annuaireExportURL(): string;
|
|
51
51
|
/**
|
|
52
|
-
* The records URL that answers
|
|
52
|
+
* The records URL that answers with the count of records the overseas filter selects.
|
|
53
53
|
*/
|
|
54
54
|
export declare function annuaireCountURL(): string;
|
|
55
55
|
/**
|
|
@@ -94,7 +94,7 @@ export declare function readAnnuaireCatalog(client: Pick<APIClient, "fetch">): P
|
|
|
94
94
|
licenseURL: string | null;
|
|
95
95
|
}>;
|
|
96
96
|
/**
|
|
97
|
-
* Read
|
|
97
|
+
* Read the count of records the overseas filter selects.
|
|
98
98
|
*
|
|
99
99
|
* @throws When the endpoint answers no `total_count`.
|
|
100
100
|
*/
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* Two checks keep a short transfer from reading as a small directory. The records endpoint is asked
|
|
17
17
|
* for the `total_count` of the same filter before the export, and the written file must hold exactly
|
|
18
|
-
* that
|
|
18
|
+
* that number of lines. A mismatch removes the file and fails the fetch. A re-run compares the catalog
|
|
19
19
|
* record's `modified` against the manifest and makes no transfer when they agree and the file is on
|
|
20
20
|
* disk at the recorded length.
|
|
21
21
|
*/
|
|
@@ -60,7 +60,7 @@ export function annuaireExportURL() {
|
|
|
60
60
|
return `${ANNUAIRE_EDUCATION_API_URL}/exports/jsonl?where=${encodeURIComponent(annuaireOverseasFilter())}`;
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
|
-
* The records URL that answers
|
|
63
|
+
* The records URL that answers with the count of records the overseas filter selects.
|
|
64
64
|
*/
|
|
65
65
|
export function annuaireCountURL() {
|
|
66
66
|
return `${ANNUAIRE_EDUCATION_API_URL}/records?where=${encodeURIComponent(annuaireOverseasFilter())}&limit=0`;
|
|
@@ -80,7 +80,7 @@ export async function readAnnuaireCatalog(client) {
|
|
|
80
80
|
return { modified: metas.modified, license: metas.license ?? null, licenseURL: metas.license_url ?? null };
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* Read
|
|
83
|
+
* Read the count of records the overseas filter selects.
|
|
84
84
|
*
|
|
85
85
|
* @throws When the endpoint answers no `total_count`.
|
|
86
86
|
*/
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* The constituent country of a GB postcode, read from the ONS National Statistics UPRN Lookup.
|
|
7
|
+
*
|
|
8
|
+
* A GB row labels its constituent country `region`, because WOF records England, Scotland, Wales and
|
|
9
|
+
* Northern Ireland as `macroregion` places under the United Kingdom.
|
|
10
|
+
* The postcode-area table in the codex assigns a whole area to one country. That assignment is wrong on the border:
|
|
11
|
+
* every `SY` postcode maps to Wales, and `SY1` to `SY5` lie in Shrewsbury, England.
|
|
12
|
+
* NSUL records the country of each UPRN, so the postcode's country is a count of its UPRNs.
|
|
13
|
+
*/
|
|
14
|
+
import type { PathBuilderLike } from "path-ts";
|
|
15
|
+
/**
|
|
16
|
+
* What {@link openConstituentCountryReader} answered for one postcode.
|
|
17
|
+
*/
|
|
18
|
+
export interface ConstituentCountryAnswer {
|
|
19
|
+
/**
|
|
20
|
+
* The English name of the country holding most of the postcode's UPRNs, such as `Wales`.
|
|
21
|
+
*
|
|
22
|
+
* Null when the register assigns no UPRN to the postcode.
|
|
23
|
+
*/
|
|
24
|
+
name: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the postcode's UPRNs lie in more than one constituent country.
|
|
27
|
+
*/
|
|
28
|
+
straddles: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Opens `nsul.db` and returns a reader from a GB postcode to its constituent country.
|
|
32
|
+
*
|
|
33
|
+
* The reader holds the database open for the life of the process, as a corpus build reads millions of rows.
|
|
34
|
+
*/
|
|
35
|
+
export declare function openConstituentCountryReader(databasePath?: PathBuilderLike): (postcode: string) => ConstituentCountryAnswer;
|
|
36
|
+
//# sourceMappingURL=constituent-country.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constituent-country.d.ts","sourceRoot":"","sources":["../../lib/gb/constituent-country.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACxC;;;;OAIG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAA;CAClB;AAED;;;;GAIG;AACH,wBAAgB,4BAA4B,CAC3C,YAAY,GAAE,eAA6C,GACzD,CAAC,QAAQ,EAAE,MAAM,KAAK,wBAAwB,CAShD"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* The constituent country of a GB postcode, read from the ONS National Statistics UPRN Lookup.
|
|
7
|
+
*
|
|
8
|
+
* A GB row labels its constituent country `region`, because WOF records England, Scotland, Wales and
|
|
9
|
+
* Northern Ireland as `macroregion` places under the United Kingdom.
|
|
10
|
+
* The postcode-area table in the codex assigns a whole area to one country. That assignment is wrong on the border:
|
|
11
|
+
* every `SY` postcode maps to Wales, and `SY1` to `SY5` lie in Shrewsbury, England.
|
|
12
|
+
* NSUL records the country of each UPRN, so the postcode's country is a count of its UPRNs.
|
|
13
|
+
*/
|
|
14
|
+
import { GB_COUNTRIES } from "@mailwoman/codex/gb/country";
|
|
15
|
+
import { NSULLookup } from "@mailwoman/resolver-wof-sqlite/nsul/lookup";
|
|
16
|
+
import { nsulDatabasePath } from "@mailwoman/resolver-wof-sqlite/paths";
|
|
17
|
+
/**
|
|
18
|
+
* Opens `nsul.db` and returns a reader from a GB postcode to its constituent country.
|
|
19
|
+
*
|
|
20
|
+
* The reader holds the database open for the life of the process, as a corpus build reads millions of rows.
|
|
21
|
+
*/
|
|
22
|
+
export function openConstituentCountryReader(databasePath = nsulDatabasePath("nsul.db")) {
|
|
23
|
+
const lookup = new NSULLookup({ databasePath });
|
|
24
|
+
return (postcode) => {
|
|
25
|
+
const countries = lookup.countriesForPostcode(postcode);
|
|
26
|
+
const top = countries[0];
|
|
27
|
+
return { name: top ? GB_COUNTRIES[top.country].name : null, straddles: countries.length > 1 };
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=constituent-country.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constituent-country.js","sourceRoot":"","sources":["../../lib/gb/constituent-country.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAA;AAmBvE;;;;GAIG;AACH,MAAM,UAAU,4BAA4B,CAC3C,YAAY,GAAoB,gBAAgB,CAAC,SAAS,CAAC;IAE3D,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,EAAE,YAAY,EAAE,CAAC,CAAA;IAE/C,OAAO,CAAC,QAAQ,EAAE,EAAE;QACnB,MAAM,SAAS,GAAG,MAAM,CAAC,oBAAoB,CAAC,QAAQ,CAAC,CAAA;QACvD,MAAM,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;QAExB,OAAO,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAA;IAC9F,CAAC,CAAA;AACF,CAAC"}
|
package/out/inspire/address.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export declare function codelistValue(uri: string | null | undefined): string |
|
|
|
93
93
|
/**
|
|
94
94
|
* Whether a publisher marked this element void.
|
|
95
95
|
*
|
|
96
|
-
* INSPIRE writes `xsi:nil="true"
|
|
96
|
+
* INSPIRE writes `xsi:nil="true"`, in most cases with a `nilReason`.
|
|
97
97
|
* Brussels writes the nil marker and no reason on all 232,003 of its void `ad:validFrom`
|
|
98
98
|
* elements, and Czechia writes four `gn:pronunciation` elements nil with no reason.
|
|
99
99
|
*
|
|
@@ -214,7 +214,7 @@ export declare function componentLinks(address: MarkupElement): readonly Compone
|
|
|
214
214
|
* `http://vocab.belgif.be/auth/refnis1995/1000#id` addresses the same term as that URI without it.
|
|
215
215
|
*
|
|
216
216
|
* Whether a key joins is not a property of its spelling, so this reads a key
|
|
217
|
-
* and the caller decides joinability against the features the publisher
|
|
217
|
+
* and the caller decides joinability against the features the publisher served.
|
|
218
218
|
* A check based on the URL's shape once reported 15 of Flanders' 20 references as belonging
|
|
219
219
|
* to another register, when every one of them addressed a feature of the same service.
|
|
220
220
|
*
|
|
@@ -224,7 +224,7 @@ export declare function componentJoinKey(href: string): string | null;
|
|
|
224
224
|
/**
|
|
225
225
|
* The spelling a `gn:GeographicalName` holds, reached from a feature that has one.
|
|
226
226
|
*
|
|
227
|
-
* Every
|
|
227
|
+
* Every INSPIRE feature that has a name nests the text at
|
|
228
228
|
* `…/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text`, under a per-feature
|
|
229
229
|
* prefix: an `ad:ThoroughfareName` adds `ad:name/ad:ThoroughfareNameValue/ad:name`,
|
|
230
230
|
* while an `ad:AdminUnitName` and an `ad:AddressAreaName` add only `ad:name`.
|
package/out/inspire/address.js
CHANGED
|
@@ -112,7 +112,7 @@ export function codelistValue(uri) {
|
|
|
112
112
|
/**
|
|
113
113
|
* Whether a publisher marked this element void.
|
|
114
114
|
*
|
|
115
|
-
* INSPIRE writes `xsi:nil="true"
|
|
115
|
+
* INSPIRE writes `xsi:nil="true"`, in most cases with a `nilReason`.
|
|
116
116
|
* Brussels writes the nil marker and no reason on all 232,003 of its void `ad:validFrom`
|
|
117
117
|
* elements, and Czechia writes four `gn:pronunciation` elements nil with no reason.
|
|
118
118
|
*
|
|
@@ -305,7 +305,7 @@ const REFERENCE_ID_PARAMETERS = new Set(["id", "featureid", "resourceid"]);
|
|
|
305
305
|
* `http://vocab.belgif.be/auth/refnis1995/1000#id` addresses the same term as that URI without it.
|
|
306
306
|
*
|
|
307
307
|
* Whether a key joins is not a property of its spelling, so this reads a key
|
|
308
|
-
* and the caller decides joinability against the features the publisher
|
|
308
|
+
* and the caller decides joinability against the features the publisher served.
|
|
309
309
|
* A check based on the URL's shape once reported 15 of Flanders' 20 references as belonging
|
|
310
310
|
* to another register, when every one of them addressed a feature of the same service.
|
|
311
311
|
*
|
|
@@ -337,7 +337,7 @@ export function componentJoinKey(href) {
|
|
|
337
337
|
/**
|
|
338
338
|
* The spelling a `gn:GeographicalName` holds, reached from a feature that has one.
|
|
339
339
|
*
|
|
340
|
-
* Every
|
|
340
|
+
* Every INSPIRE feature that has a name nests the text at
|
|
341
341
|
* `…/gn:GeographicalName/gn:spelling/gn:SpellingOfName/gn:text`, under a per-feature
|
|
342
342
|
* prefix: an `ad:ThoroughfareName` adds `ad:name/ad:ThoroughfareNameValue/ad:name`,
|
|
343
343
|
* while an `ad:AdminUnitName` and an `ad:AddressAreaName` add only `ad:name`.
|
|
@@ -31,6 +31,12 @@ export interface LocalePart {
|
|
|
31
31
|
* The street combines `tipo_vial` with `nombre_via`.
|
|
32
32
|
*/
|
|
33
33
|
cnigRaw?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Opens a reader that answers the row's region from its postcode, replacing the region column.
|
|
36
|
+
*
|
|
37
|
+
* A GB part answers the constituent country this way, and its county column is not read.
|
|
38
|
+
*/
|
|
39
|
+
regionOfPostcode?: () => (postcode: string) => string | null;
|
|
34
40
|
}
|
|
35
41
|
/**
|
|
36
42
|
* The source files and row metadata for one country.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locale.d.ts","sourceRoot":"","sources":["../../../lib/international/recipes/locale.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAUH,OAAO,KA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