@mailwoman/resolver-wof-sqlite 9.0.0 → 9.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -9
- package/address-point-interpolation.ts +18 -8
- package/address-point-schema.ts +18 -6
- package/address-point.ts +111 -18
- package/ancestry.ts +9 -6
- package/build-candidate.ts +287 -157
- package/build-slim.ts +3 -3
- package/candidate/alias-bags.ts +54 -0
- package/candidate/ancestors-sidecar.ts +206 -0
- package/candidate/country-display-names.ts +79 -0
- package/candidate/name-roles.ts +237 -0
- package/candidate/own-name.ts +146 -0
- package/candidate/place-attrs.ts +44 -0
- package/candidate/shard-fold.ts +137 -0
- package/candidate-ancestors-schema.ts +195 -0
- package/candidate-fts.ts +4 -2
- package/candidate-importance.ts +228 -0
- package/candidate-lookup.ts +564 -174
- package/candidate-schema.ts +60 -3
- package/candidate-scoring.ts +268 -0
- package/capital-schema.ts +90 -0
- package/capitals.ts +148 -0
- package/coincident-roles.ts +69 -10
- package/convention-schema.ts +72 -0
- package/convention.ts +2 -2
- package/coverage-manifest-schema.ts +7 -7
- package/currency-backfill.ts +249 -0
- package/exact-match.ts +104 -0
- package/fst-autocomplete.ts +105 -122
- package/fst-builder.ts +39 -47
- package/fst-deserialize-web.ts +43 -7
- package/fst-freshness.ts +2 -2
- package/fst-serialize.ts +68 -12
- package/fst-types.ts +35 -1
- package/fts-query.ts +1 -1
- package/fts.ts +16 -4
- package/geonames-postal.ts +2 -2
- package/index.ts +26 -14
- package/interpolation.ts +113 -19
- package/lookup.ts +118 -560
- package/name-score.ts +6 -4
- package/out/address-point-interpolation.d.ts.map +1 -1
- package/out/address-point-interpolation.js +13 -7
- package/out/address-point-interpolation.js.map +1 -1
- package/out/address-point-schema.d.ts +16 -6
- package/out/address-point-schema.d.ts.map +1 -1
- package/out/address-point-schema.js.map +1 -1
- package/out/address-point.d.ts.map +1 -1
- package/out/address-point.js +70 -14
- package/out/address-point.js.map +1 -1
- package/out/ancestry.d.ts +2 -2
- package/out/ancestry.d.ts.map +1 -1
- package/out/ancestry.js +5 -6
- package/out/ancestry.js.map +1 -1
- package/out/build-candidate.d.ts +108 -0
- package/out/build-candidate.d.ts.map +1 -1
- package/out/build-candidate.js +151 -120
- package/out/build-candidate.js.map +1 -1
- package/out/build-slim.d.ts +1 -1
- package/out/build-slim.js +3 -3
- package/out/build-slim.js.map +1 -1
- package/out/candidate/alias-bags.d.ts +17 -0
- package/out/candidate/alias-bags.d.ts.map +1 -0
- package/out/candidate/alias-bags.js +39 -0
- package/out/candidate/alias-bags.js.map +1 -0
- package/out/candidate/ancestors-sidecar.d.ts +33 -0
- package/out/candidate/ancestors-sidecar.d.ts.map +1 -0
- package/out/candidate/ancestors-sidecar.js +140 -0
- package/out/candidate/ancestors-sidecar.js.map +1 -0
- package/out/candidate/country-display-names.d.ts +35 -0
- package/out/candidate/country-display-names.d.ts.map +1 -0
- package/out/candidate/country-display-names.js +59 -0
- package/out/candidate/country-display-names.js.map +1 -0
- package/out/candidate/name-roles.d.ts +55 -0
- package/out/candidate/name-roles.d.ts.map +1 -0
- package/out/candidate/name-roles.js +165 -0
- package/out/candidate/name-roles.js.map +1 -0
- package/out/candidate/own-name.d.ts +50 -0
- package/out/candidate/own-name.d.ts.map +1 -0
- package/out/candidate/own-name.js +132 -0
- package/out/candidate/own-name.js.map +1 -0
- package/out/candidate/place-attrs.d.ts +43 -0
- package/out/candidate/place-attrs.d.ts.map +1 -0
- package/out/candidate/place-attrs.js +15 -0
- package/out/candidate/place-attrs.js.map +1 -0
- package/out/candidate/shard-fold.d.ts +31 -0
- package/out/candidate/shard-fold.d.ts.map +1 -0
- package/out/candidate/shard-fold.js +104 -0
- package/out/candidate/shard-fold.js.map +1 -0
- package/out/candidate-ancestors-schema.d.ts +150 -0
- package/out/candidate-ancestors-schema.d.ts.map +1 -0
- package/out/candidate-ancestors-schema.js +123 -0
- package/out/candidate-ancestors-schema.js.map +1 -0
- package/out/candidate-fts.d.ts +4 -2
- package/out/candidate-fts.d.ts.map +1 -1
- package/out/candidate-fts.js +4 -2
- package/out/candidate-fts.js.map +1 -1
- package/out/candidate-importance.d.ts +132 -0
- package/out/candidate-importance.d.ts.map +1 -0
- package/out/candidate-importance.js +174 -0
- package/out/candidate-importance.js.map +1 -0
- package/out/candidate-lookup.d.ts +22 -37
- package/out/candidate-lookup.d.ts.map +1 -1
- package/out/candidate-lookup.js +446 -132
- package/out/candidate-lookup.js.map +1 -1
- package/out/candidate-schema.d.ts +52 -4
- package/out/candidate-schema.d.ts.map +1 -1
- package/out/candidate-schema.js +8 -0
- package/out/candidate-schema.js.map +1 -1
- package/out/candidate-scoring.d.ts +34 -0
- package/out/candidate-scoring.d.ts.map +1 -0
- package/out/candidate-scoring.js +200 -0
- package/out/candidate-scoring.js.map +1 -0
- package/out/capital-schema.d.ts +51 -0
- package/out/capital-schema.d.ts.map +1 -0
- package/out/capital-schema.js +63 -0
- package/out/capital-schema.js.map +1 -0
- package/out/capitals.d.ts +69 -0
- package/out/capitals.d.ts.map +1 -0
- package/out/capitals.js +98 -0
- package/out/capitals.js.map +1 -0
- package/out/coincident-roles.d.ts +7 -0
- package/out/coincident-roles.d.ts.map +1 -1
- package/out/coincident-roles.js +42 -8
- package/out/coincident-roles.js.map +1 -1
- package/out/convention-schema.d.ts +51 -0
- package/out/convention-schema.d.ts.map +1 -0
- package/out/convention-schema.js +34 -0
- package/out/convention-schema.js.map +1 -0
- package/out/convention.d.ts +1 -1
- package/out/convention.js +2 -2
- package/out/coverage-manifest-schema.js +3 -7
- package/out/coverage-manifest-schema.js.map +1 -1
- package/out/currency-backfill.d.ts +46 -0
- package/out/currency-backfill.d.ts.map +1 -0
- package/out/currency-backfill.js +180 -0
- package/out/currency-backfill.js.map +1 -0
- package/out/exact-match.d.ts +25 -0
- package/out/exact-match.d.ts.map +1 -0
- package/out/exact-match.js +89 -0
- package/out/exact-match.js.map +1 -0
- package/out/fst-autocomplete.d.ts +24 -14
- package/out/fst-autocomplete.d.ts.map +1 -1
- package/out/fst-autocomplete.js +84 -100
- package/out/fst-autocomplete.js.map +1 -1
- package/out/fst-builder.d.ts.map +1 -1
- package/out/fst-builder.js +32 -40
- package/out/fst-builder.js.map +1 -1
- package/out/fst-deserialize-web.d.ts.map +1 -1
- package/out/fst-deserialize-web.js +36 -7
- package/out/fst-deserialize-web.js.map +1 -1
- package/out/fst-freshness.d.ts +2 -2
- package/out/fst-freshness.js +2 -2
- package/out/fst-serialize.d.ts +14 -4
- package/out/fst-serialize.d.ts.map +1 -1
- package/out/fst-serialize.js +60 -12
- package/out/fst-serialize.js.map +1 -1
- package/out/fst-types.d.ts +35 -1
- package/out/fst-types.d.ts.map +1 -1
- package/out/fts-query.js +1 -1
- package/out/fts-query.js.map +1 -1
- package/out/fts.d.ts +15 -4
- package/out/fts.d.ts.map +1 -1
- package/out/fts.js +15 -4
- package/out/fts.js.map +1 -1
- package/out/geonames-postal.d.ts +2 -2
- package/out/geonames-postal.js +2 -2
- package/out/index.d.ts +4 -2
- package/out/index.d.ts.map +1 -1
- package/out/index.js +3 -2
- package/out/index.js.map +1 -1
- package/out/interpolation.d.ts +8 -0
- package/out/interpolation.d.ts.map +1 -1
- package/out/interpolation.js +91 -19
- package/out/interpolation.js.map +1 -1
- package/out/lookup.d.ts +4 -5
- package/out/lookup.d.ts.map +1 -1
- package/out/lookup.js +102 -444
- package/out/lookup.js.map +1 -1
- package/out/name-score.d.ts +0 -10
- package/out/name-score.d.ts.map +1 -1
- package/out/name-score.js +6 -4
- package/out/name-score.js.map +1 -1
- package/out/place-importance-schema.d.ts +226 -0
- package/out/place-importance-schema.d.ts.map +1 -0
- package/out/place-importance-schema.js +288 -0
- package/out/place-importance-schema.js.map +1 -0
- package/out/poi-lookup.d.ts +1 -1
- package/out/poi-lookup.d.ts.map +1 -1
- package/out/poi-lookup.js +12 -13
- package/out/poi-lookup.js.map +1 -1
- package/out/poi-schema.d.ts +7 -3
- package/out/poi-schema.d.ts.map +1 -1
- package/out/poi-schema.js.map +1 -1
- package/out/polygon-schema.d.ts +37 -0
- package/out/polygon-schema.d.ts.map +1 -0
- package/out/polygon-schema.js +23 -0
- package/out/polygon-schema.js.map +1 -0
- package/out/postal-city-alias-lookup.d.ts +1 -1
- package/out/postal-city-alias-lookup.js +1 -1
- package/out/postal-city-candidate-schema.d.ts +2 -1
- package/out/postal-city-candidate-schema.d.ts.map +1 -1
- package/out/postal-city-candidate-schema.js.map +1 -1
- package/out/postcode-point-lookup.d.ts +1 -1
- package/out/postcode-point-lookup.js +1 -1
- package/out/primary-preference.d.ts +125 -0
- package/out/primary-preference.d.ts.map +1 -0
- package/out/primary-preference.js +138 -0
- package/out/primary-preference.js.map +1 -0
- package/out/proximity-rerank.d.ts +77 -0
- package/out/proximity-rerank.d.ts.map +1 -0
- package/out/proximity-rerank.js +86 -0
- package/out/proximity-rerank.js.map +1 -0
- package/out/region-keys.d.ts +47 -0
- package/out/region-keys.d.ts.map +1 -0
- package/out/region-keys.js +121 -0
- package/out/region-keys.js.map +1 -0
- package/out/reverse.d.ts.map +1 -1
- package/out/reverse.js +6 -9
- package/out/reverse.js.map +1 -1
- package/out/schema.d.ts +1 -1
- package/out/search-fetch.d.ts +57 -0
- package/out/search-fetch.d.ts.map +1 -0
- package/out/search-fetch.js +183 -0
- package/out/search-fetch.js.map +1 -0
- package/out/sharding.d.ts +3 -3
- package/out/sharding.js +1 -1
- package/out/sqlite-convention-source.d.ts +1 -1
- package/out/sqlite-convention-source.js +1 -1
- package/out/sqlite-utils.d.ts +31 -1
- package/out/sqlite-utils.d.ts.map +1 -1
- package/out/sqlite-utils.js +38 -0
- package/out/sqlite-utils.js.map +1 -1
- package/out/street-centroid-schema.d.ts +7 -2
- package/out/street-centroid-schema.d.ts.map +1 -1
- package/out/street-centroid-schema.js.map +1 -1
- package/out/street-centroid.d.ts.map +1 -1
- package/out/street-centroid.js +7 -7
- package/out/street-centroid.js.map +1 -1
- package/out/street-morphology-fst-builder.d.ts.map +1 -1
- package/out/street-morphology-fst-builder.js +5 -4
- package/out/street-morphology-fst-builder.js.map +1 -1
- package/out/street-normalize.d.ts +83 -9
- package/out/street-normalize.d.ts.map +1 -1
- package/out/street-normalize.js +177 -10
- package/out/street-normalize.js.map +1 -1
- package/out/street-segment-schema.d.ts +6 -2
- package/out/street-segment-schema.d.ts.map +1 -1
- package/out/street-segment-schema.js.map +1 -1
- package/out/types.d.ts +74 -1
- package/out/types.d.ts.map +1 -1
- package/out/unified-schema.d.ts +1 -1
- package/out/unified-schema.js +1 -1
- package/out/uprn-lookup.d.ts +85 -0
- package/out/uprn-lookup.d.ts.map +1 -0
- package/out/uprn-lookup.js +152 -0
- package/out/uprn-lookup.js.map +1 -0
- package/out/uprn-schema.d.ts +93 -0
- package/out/uprn-schema.d.ts.map +1 -0
- package/out/uprn-schema.js +78 -0
- package/out/uprn-schema.js.map +1 -0
- package/out/weights-overlay-linker.d.ts +141 -0
- package/out/weights-overlay-linker.d.ts.map +1 -0
- package/out/weights-overlay-linker.js +259 -0
- package/out/weights-overlay-linker.js.map +1 -0
- package/package.json +296 -16
- package/place-importance-schema.ts +402 -0
- package/poi-lookup.ts +12 -13
- package/poi-schema.ts +8 -3
- package/polygon-schema.ts +47 -0
- package/postal-city-alias-lookup.ts +1 -1
- package/postal-city-candidate-schema.ts +3 -1
- package/postcode-point-lookup.ts +1 -1
- package/primary-preference.ts +207 -0
- package/proximity-rerank.ts +120 -0
- package/region-keys.ts +144 -0
- package/reverse.ts +17 -16
- package/schema.ts +1 -1
- package/search-fetch.ts +256 -0
- package/sharding.ts +3 -3
- package/sqlite-convention-source.ts +1 -1
- package/sqlite-utils.ts +63 -1
- package/street-centroid-schema.ts +8 -2
- package/street-centroid.ts +13 -8
- package/street-morphology-fst-builder.ts +5 -4
- package/street-normalize.ts +254 -24
- package/street-segment-schema.ts +7 -2
- package/types.ts +74 -1
- package/unified-schema.ts +1 -1
- package/uprn-lookup.ts +210 -0
- package/uprn-schema.ts +124 -0
- package/weights-overlay-linker.ts +377 -0
- package/geo.ts +0 -121
- package/out/geo.d.ts +0 -74
- package/out/geo.d.ts.map +0 -1
- package/out/geo.js +0 -71
- package/out/geo.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"street-normalize.js","sourceRoot":"","sources":["../street-normalize.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,yBAAyB,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAExF;;;GAGG;AACH,MAAM,yBAAyB,GAAG,CAAC,CAAA;AAEnC;;;;;;;GAOG;AACH,MAAM,wBAAwB,GAAG,IAAI,GAAG,CAAiB;IACxD,CAAC,OAAO,EAAE,KAAK,CAAC;IAChB,CAAC,QAAQ,EAAE,KAAK,CAAC;IACjB,CAAC,OAAO,EAAE,KAAK,CAAC;IAChB,CAAC,QAAQ,EAAE,KAAK,CAAC;IACjB,CAAC,OAAO,EAAE,KAAK,CAAC;IAChB,CAAC,OAAO,EAAE,KAAK,CAAC;IAChB,CAAC,SAAS,EAAE,KAAK,CAAC;IAClB,CAAC,QAAQ,EAAE,KAAK,CAAC;IACjB,CAAC,OAAO,EAAE,KAAK,CAAC;IAChB,CAAC,OAAO,EAAE,MAAM,CAAC;IACjB,CAAC,UAAU,EAAE,MAAM,CAAC;IACpB,CAAC,SAAS,EAAE,MAAM,CAAC;IACnB,CAAC,YAAY,EAAE,MAAM,CAAC;IACtB,CAAC,YAAY,EAAE,MAAM,CAAC;IACtB,CAAC,WAAW,EAAE,MAAM,CAAC;IACrB,CAAC,WAAW,EAAE,MAAM,CAAC;IACrB,CAAC,aAAa,EAAE,MAAM,CAAC;IACvB,CAAC,YAAY,EAAE,MAAM,CAAC;IACtB,CAAC,YAAY,EAAE,MAAM,CAAC;IACtB,CAAC,WAAW,EAAE,MAAM,CAAC;IACrB,CAAC,WAAW,EAAE,MAAM,CAAC;IACrB,CAAC,UAAU,EAAE,MA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qB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QAEtE,IAAI,SAAS,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;YAChD,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;QACzB,CAAC;IACF,CAAC;IAED,+FAA+F;IAC/F,8BAA8B;IAC9B,MAAM,OAAO,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAA;IAEhC,KAAK,MAAM,OAAO,IAAI,OAAO,EAAE,CAAC;QAC/B,MAAM,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAC1C,MAAM,OAAO,GAAG,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA;QAExE,IAAI,OAAO,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAC5B,iGAAiG;YACjG,6FAA6F;YAC7F,cAAc;YACd,MAAM,SAAS,GAAG,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAc,CAAA;YAE3D,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;gBACnC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;YACzB,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,QAAQ,CAAA;AAChB,CAAC"}
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* {@link STREET_SEGMENT_COLUMNS} so it can't drift from the DDL.
|
|
16
16
|
*/
|
|
17
17
|
import type { Kysely } from "kysely";
|
|
18
|
+
import type { RouteKey } from "./street-normalize.ts";
|
|
18
19
|
/**
|
|
19
20
|
* One TIGER street-segment edge: a `(from_hn, to_hn)` house-number range on one `side` of a named street, with the
|
|
20
21
|
* geometry the interpolator walks. `min_hn`/`max_hn` are the sorted bounds (the probe filters on them); `parity` is
|
|
@@ -22,9 +23,12 @@ import type { Kysely } from "kysely";
|
|
|
22
23
|
*/
|
|
23
24
|
export interface StreetSegmentTable {
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* `canonicalizeRouteKey(normalizeStreetForKey(street))` — the build/query-consistent probe key. The column NAME says
|
|
27
|
+
* `street_norm`, but the value carries the route fold on top of the street fold, which is why the brand is
|
|
28
|
+
* {@link RouteKey}: builder and probe both apply both folds, and a plain street key bound here misses every
|
|
29
|
+
* numbered-route row.
|
|
26
30
|
*/
|
|
27
|
-
street_norm:
|
|
31
|
+
street_norm: RouteKey;
|
|
28
32
|
/**
|
|
29
33
|
* `L` or `R` — the TIGER side the address range sits on.
|
|
30
34
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"street-segment-schema.d.ts","sourceRoot":"","sources":["../street-segment-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAClC
|
|
1
|
+
{"version":3,"file":"street-segment-schema.d.ts","sourceRoot":"","sources":["../street-segment-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAErD;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAClC;;;;;OAKG;IACH,WAAW,EAAE,QAAQ,CAAA;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;CACf;AAED;;;;;;GAMG;AACH,MAAM,WAAW,oBAAoB;IACpC;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC,cAAc,EAAE,kBAAkB,CAAA;IAClC,kBAAkB,EAAE,oBAAoB,CAAA;CACxC;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,8JAczB,CAAA;AAEV;;GAEG;AACH,wBAAsB,wBAAwB,CAAC,EAAE,EAAE,MAAM,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAiB/F;AAED;;;;;GAKG;AACH,wBAAsB,sBAAsB,CAC3C,EAAE,EAAE,MAAM,CAAC,qBAAqB,CAAC,EACjC,GAAG,EAAE,oBAAoB,GACvB,OAAO,CAAC,IAAI,CAAC,CASf;AAED;;GAEG;AACH,wBAAsB,0BAA0B,CAAC,EAAE,EAAE,MAAM,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAQjG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"street-segment-schema.js","sourceRoot":"","sources":["../street-segment-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;
|
|
1
|
+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AAkB,CAAC;SAC/B,EAAE,CAAC,gBAAgB,CAAC;SACpB,OAAO,CAAC,CAAC,UAAU,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC;SAC9C,OAAO,EAAE,CAAA;IAEX,MAAM,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAA;AAChH,CAAC"}
|
package/out/types.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export type WOFPlacetype = "country" | "macroregion" | "region" | "macrocounty"
|
|
|
23
23
|
* treat it as ordinal, not absolute.
|
|
24
24
|
*
|
|
25
25
|
* `id` is the WOF place id. It's named generically (not `wof_id`) so the shape stays structurally compatible with
|
|
26
|
-
* `@mailwoman/resolver`'s `ResolvedPlace` — `
|
|
26
|
+
* `@mailwoman/resolver`'s `ResolvedPlace` — `WOFSQLitePlaceLookup` satisfies the generic `ResolverBackend` contract
|
|
27
27
|
* without an adapter shim.
|
|
28
28
|
*
|
|
29
29
|
* `distanceKm` is populated only when the query carried `near` (and the place has a centroid). Useful for downstream
|
|
@@ -60,6 +60,38 @@ export interface PlaceCandidate {
|
|
|
60
60
|
* population for ~15% of localities (mostly larger ones). Absent does NOT mean zero, just unknown.
|
|
61
61
|
*/
|
|
62
62
|
population?: number;
|
|
63
|
+
/**
|
|
64
|
+
* REFERENTIAL likelihood in [0, 1] — `referentialFromPopulation(population)`, the named form of the prominence key
|
|
65
|
+
* this resolver has always ranked namesakes by (ROAD_TO_V9 §2, ratified 2026-08-06).
|
|
66
|
+
*
|
|
67
|
+
* It is a strictly-increasing function of {@link PlaceCandidate.population} below `REFERENTIAL_SATURATION_POPULATION`
|
|
68
|
+
* and constant above it, so ordering by it — via `compareReferential`, which restores the megacity order with a
|
|
69
|
+
* population tiebreak — is the SAME ORDER as ordering by population. That equivalence is the point: naming the
|
|
70
|
+
* ranking key costs nothing at the ranking.
|
|
71
|
+
*
|
|
72
|
+
* Absent when the candidate has no population on record, exactly as {@link PlaceCandidate.population} is.
|
|
73
|
+
*/
|
|
74
|
+
referential?: number;
|
|
75
|
+
/**
|
|
76
|
+
* STRICT encyclopedia-evidence importance in [0, 1], fan-out-guarded per #1497 — CARRIED, NEVER RANKED ON.
|
|
77
|
+
*
|
|
78
|
+
* RESERVED SLOT awaiting a strict-channel source: present only when a shard's `place_importance` table carries the
|
|
79
|
+
* split columns, and no shipped shard does — the FTS lookup's clauses emit NULL for everything today. `undefined`
|
|
80
|
+
* means either "no encyclopedia entry for this place" or "this gazetteer predates the split"; both are absence, and
|
|
81
|
+
* neither is 0. The BLENDED prior the ranking reads is {@link PlaceCandidate.importance}.
|
|
82
|
+
*
|
|
83
|
+
* Saint-Denis is why this is not a ranking key: the Seine-Saint-Denis suburb (pop 96,128) scores 0.1173 while the
|
|
84
|
+
* Aude hamlet (pop 418) scores 0.5683. Consumers that want to display salience read this; the ranking never does.
|
|
85
|
+
*/
|
|
86
|
+
encyclopedic?: number;
|
|
87
|
+
/**
|
|
88
|
+
* BLENDED global toponym prior in [0, 1] (#28) — `candidate.importance` surfaced verbatim: the score source's legacy
|
|
89
|
+
* blended importance (encyclopedia-derived where the concordance matched, a population-derived proxy elsewhere).
|
|
90
|
+
* Emitted only by the candidate-table backend, and only when the artifact measured this place — absent is UNMEASURED,
|
|
91
|
+
* never zero. Consumed by `rankByImportance` (`resolver/toponym-prior.ts`) for the bare-toponym class. See
|
|
92
|
+
* `candidate-schema.ts` → `CandidateTable.importance` for why the blend, not the strict channel, is what ships.
|
|
93
|
+
*/
|
|
94
|
+
importance?: number;
|
|
63
95
|
/**
|
|
64
96
|
* Bounding box from WOF's `spr.{min,max}_{latitude,longitude}` columns. Coarse outline for the place — a city's bbox
|
|
65
97
|
* is the city's full extent, a postcode's is roughly the postcode polygon's envelope. Optional because not all
|
|
@@ -74,6 +106,14 @@ export interface PlaceCandidate {
|
|
|
74
106
|
* the falsehood-detection differentiator.
|
|
75
107
|
*/
|
|
76
108
|
mismatch?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Admin-containment stamp (#1717 stage 2) — TRI-STATE, mirroring `ResolvedPlace.containedByQualifier` in
|
|
111
|
+
* `@mailwoman/core`: `true` = the ancestors sidecar vouches this candidate sits under the query's
|
|
112
|
+
* {@link FindPlaceQuery.regionQualifier}; `false` = evaluated and not vouched for; absent = never evaluated (no
|
|
113
|
+
* qualifier on the query, or an artifact without the sidecar). Absence is load-bearing — the resolver walk reads it
|
|
114
|
+
* as `unavailable`, never as "not contained".
|
|
115
|
+
*/
|
|
116
|
+
containedByQualifier?: boolean;
|
|
77
117
|
}
|
|
78
118
|
/**
|
|
79
119
|
* A WGS-84 lat/lon point. Used as a proximity hint for `FindPlaceQuery.near`.
|
|
@@ -112,6 +152,24 @@ export interface FindPlaceQuery {
|
|
|
112
152
|
* ISO 3166-1 alpha-2 — narrows to one country.
|
|
113
153
|
*/
|
|
114
154
|
country?: string;
|
|
155
|
+
/**
|
|
156
|
+
* ISO 3166-1 alpha-2 — narrows the TYPO-FUZZY tier only (#1585). Exact and qualifier-strip probes stay worldwide (a
|
|
157
|
+
* locale hint is a prior, never a hard filter on exact matches), but a typo CORRECTION into a different country's
|
|
158
|
+
* namespace is nearly always a scrape, so the corrected-key probes honor this scope and a scoped-empty ABSTAINS
|
|
159
|
+
* rather than falling through to a world-fuzzy candidate. Ignored when `country` is set (already narrower).
|
|
160
|
+
*/
|
|
161
|
+
fuzzyCountry?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Restrict name matching to PRIMARY-keyed rows (#1632) — set by probes whose surface is a RE-READING (a token cut out
|
|
164
|
+
* of a longer classified span), which never named an alias. See the ResolverBackend contract in
|
|
165
|
+
* `@mailwoman/core/resolver`.
|
|
166
|
+
*/
|
|
167
|
+
primaryOnly?: boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Alias-row NAME ROLES the probe refuses to answer through (#1730) — the bare-toponym side races pass `abbr`/`gloss`.
|
|
170
|
+
* Role-NULL alias rows (the exonym tier) stay open; backends/artifacts without a role column ignore it.
|
|
171
|
+
*/
|
|
172
|
+
excludeNameRoles?: readonly string[];
|
|
115
173
|
/**
|
|
116
174
|
* WOF place id — narrows to descendants of this place.
|
|
117
175
|
*/
|
|
@@ -123,6 +181,21 @@ export interface FindPlaceQuery {
|
|
|
123
181
|
* postcode_locality shard is present.
|
|
124
182
|
*/
|
|
125
183
|
postcode?: string;
|
|
184
|
+
/**
|
|
185
|
+
* Postcode-containment coherence (#31, Mechanism 2) — when true on a locality query that also carries `postcode`,
|
|
186
|
+
* candidate rows within `POSTCODE_CONTAINMENT_GATE_KM` of the postcode's own centroid sort by distance first, the
|
|
187
|
+
* rest appended in their original order. Set by the resolver from `ResolveOpts.postcodeContainmentCoherence`; absent
|
|
188
|
+
* → the population-first order is untouched (byte-identical).
|
|
189
|
+
*/
|
|
190
|
+
postcodeContainmentCoherence?: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* The tree's parsed REGION qualifier (#1717 stage 2) — set by the resolver on locality lookups when
|
|
193
|
+
* `ResolveOpts.adminContainmentRerank` is on. See the `ResolverBackend` contract in `@mailwoman/core/resolver`: a
|
|
194
|
+
* capable backend stamps `containedByQualifier`, ranks contained candidates first, and may ADD contained same-key
|
|
195
|
+
* candidates a country scope hid — additive only, never a filter. Ignored on an artifact without the ancestors
|
|
196
|
+
* sidecar (candidates then carry no stamp).
|
|
197
|
+
*/
|
|
198
|
+
regionQualifier?: string;
|
|
126
199
|
/**
|
|
127
200
|
* Proximity hint — candidates close to this point get a ranking boost.
|
|
128
201
|
*/
|
package/out/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACrB,SAAS,GACT,aAAa,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IACpC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAA;IACtC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG;QAAE,aAAa,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAC5C;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC3B,SAAS,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAA;IAC3D,KAAK,IAAI,IAAI,CAAA;CACb"}
|
package/out/unified-schema.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* (`scripts/build-unified-wof.ts`). This is the CANONICAL gazetteer — we never use the
|
|
8
8
|
* off-the-shelf geocode.earth prebuilt dumps (they assign different WOF ids to the same place;
|
|
9
9
|
* see the `feedback-custom-wof-db-only` memory). The table/column names match the resolver's
|
|
10
|
-
* expectations (`lookup.ts`) so `
|
|
10
|
+
* expectations (`lookup.ts`) so `WOFSQLitePlaceLookup` works unchanged, INCLUDING the `ancestors`
|
|
11
11
|
* table (which lookup.ts's parent-constraint subquery needs) — see `populateAncestors`. The
|
|
12
12
|
* `place_search` FTS5 + `place_bbox` R*Tree are built separately by `build-fts` (fts.ts).
|
|
13
13
|
*/
|
package/out/unified-schema.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* (`scripts/build-unified-wof.ts`). This is the CANONICAL gazetteer — we never use the
|
|
8
8
|
* off-the-shelf geocode.earth prebuilt dumps (they assign different WOF ids to the same place;
|
|
9
9
|
* see the `feedback-custom-wof-db-only` memory). The table/column names match the resolver's
|
|
10
|
-
* expectations (`lookup.ts`) so `
|
|
10
|
+
* expectations (`lookup.ts`) so `WOFSQLitePlaceLookup` works unchanged, INCLUDING the `ancestors`
|
|
11
11
|
* table (which lookup.ts's parent-constraint subquery needs) — see `populateAncestors`. The
|
|
12
12
|
* `place_search` FTS5 + `place_bbox` R*Tree are built separately by `build-fts` (fts.ts).
|
|
13
13
|
*/
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* Node reader for `uprn.db` — the OS Open UPRN layer (`uprn-schema.ts`). Two probes:
|
|
7
|
+
*
|
|
8
|
+
* - **`coordinateOf(uprn)`**: rowid B-tree hit on the `uprn` integer PK.
|
|
9
|
+
* - **`nearestUPRN(lat, lon, radiusM)`**: bounded nearest-point search over the res-9 `h3_cell`
|
|
10
|
+
* index — ring-by-ring `gridDisk` expansion with chunked `IN` probes and haversine ranking.
|
|
11
|
+
* Rings stop as soon as geometry proves no unprobed cell could beat the best hit — a distance
|
|
12
|
+
* bound, not POILookup's row-count accumulation, so the early exit can never strand a nearer
|
|
13
|
+
* point in an unprobed ring.
|
|
14
|
+
*
|
|
15
|
+
* ## `null` is a claim, scoped by coverage
|
|
16
|
+
*
|
|
17
|
+
* OS designates Open UPRN complete for GB (every UPRN in AddressBase Premium with geometry), and
|
|
18
|
+
* the builder writes `layer_coverage` with basis `designated` for every cell the product touches.
|
|
19
|
+
* So a `null` from either probe inside a covered cell is evidence of absence — "no such published
|
|
20
|
+
* GB UPRN" / "no UPRN within the radius". Outside coverage (Northern Ireland, the Isle of Man, the
|
|
21
|
+
* Channel Islands, open water) it is UNKNOWN, per the meaning-of-zero rule — callers building
|
|
22
|
+
* negative evidence must consult `readLayerCoverage`, not this reader alone.
|
|
23
|
+
*
|
|
24
|
+
* `latLngToCell`/`gridDisk` come from `h3-js`; the 48-bit short-cell packing is
|
|
25
|
+
* `@mailwoman/spatial`'s `shortCellToInt` via `uprnFullCell` — never reimplemented here.
|
|
26
|
+
*/
|
|
27
|
+
import { DatabaseSync } from "node:sqlite";
|
|
28
|
+
/**
|
|
29
|
+
* Hard ceiling on `radiusM`. Keeps the probe bounded (10 km → ~72 rings ≈ 15.8k cells ≈ 18 `IN` chunks); a caller who
|
|
30
|
+
* wants a wider search than "which property is this coordinate" has outgrown this reader and should say so loudly.
|
|
31
|
+
*/
|
|
32
|
+
export declare const UPRN_MAX_NEAREST_RADIUS_M = 10000;
|
|
33
|
+
export interface UPRNCoordinate {
|
|
34
|
+
latitude: number;
|
|
35
|
+
longitude: number;
|
|
36
|
+
}
|
|
37
|
+
export interface UPRNNearestHit {
|
|
38
|
+
uprn: number;
|
|
39
|
+
latitude: number;
|
|
40
|
+
longitude: number;
|
|
41
|
+
/**
|
|
42
|
+
* Haversine distance from the query point, metres.
|
|
43
|
+
*/
|
|
44
|
+
distanceM: number;
|
|
45
|
+
}
|
|
46
|
+
export interface UPRNLookupOpts {
|
|
47
|
+
/**
|
|
48
|
+
* Path to a `uprn.db` built by `mailwoman`'s gazetteer pipeline. Opened read-only.
|
|
49
|
+
*/
|
|
50
|
+
databasePath?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Pre-opened handle (tests / shared connections). Mutually exclusive with `databasePath`.
|
|
53
|
+
*/
|
|
54
|
+
database?: DatabaseSync;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Node reader over `uprn.db`. `implements Disposable` so callers can `using lookup = new UPRNLookup(...)` — the same
|
|
58
|
+
* precedent as {@link POILookup}.
|
|
59
|
+
*/
|
|
60
|
+
export declare class UPRNLookup implements Disposable {
|
|
61
|
+
#private;
|
|
62
|
+
constructor(opts: UPRNLookupOpts);
|
|
63
|
+
/**
|
|
64
|
+
* The WGS84 point OS publishes for `uprn`, or `null` when the layer holds no such UPRN (see the module docstring for
|
|
65
|
+
* what that `null` claims).
|
|
66
|
+
*/
|
|
67
|
+
coordinateOf(uprn: number): UPRNCoordinate | null;
|
|
68
|
+
/**
|
|
69
|
+
* The single nearest UPRN within `radiusM` metres of the query point, or `null` when no UPRN lies inside the radius.
|
|
70
|
+
*
|
|
71
|
+
* Bounded two ways: `radiusM` is capped at {@link UPRN_MAX_NEAREST_RADIUS_M}, and rings expand outward only until no
|
|
72
|
+
* unprobed cell could beat the best hit found so far (or the radius, when nothing has been found). The stop rule is
|
|
73
|
+
* geometric — a cell at grid distance `g` holds no point nearer than `g` × spacing floor − cell radius, using the
|
|
74
|
+
* same conservative constants the reach math uses — so unlike POILookup's row-count accumulation there is no
|
|
75
|
+
* early-exit ambiguity: a break can never strand a nearer point in an unprobed ring. This is what keeps a
|
|
76
|
+
* capped-radius call over dense ground at milliseconds instead of a full-disk fetch (measured 6.4 s → 13 ms for a 10
|
|
77
|
+
* km radius over central London, 41.6M-row layer; an empty-sea miss at the cap runs the full expansion, 74 ms).
|
|
78
|
+
*
|
|
79
|
+
* @throws {RangeError} When `radiusM` is not a positive finite number, or exceeds the cap.
|
|
80
|
+
*/
|
|
81
|
+
nearestUPRN(latitude: number, longitude: number, radiusM: number): UPRNNearestHit | null;
|
|
82
|
+
close(): void;
|
|
83
|
+
[Symbol.dispose](): void;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=uprn-lookup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uprn-lookup.d.ts","sourceRoot":"","sources":["../uprn-lookup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAuB1C;;;GAGG;AACH,eAAO,MAAM,yBAAyB,QAAS,CAAA;AAO/C,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAA;CACvB;AAQD;;;GAGG;AACH,qBAAa,UAAW,YAAW,UAAU;;gBAShC,IAAI,EAAE,cAAc;IAchC;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI;IAMjD;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI;IAyDxF,KAAK,IAAI,IAAI;IAMb,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI;CAGxB"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* Node reader for `uprn.db` — the OS Open UPRN layer (`uprn-schema.ts`). Two probes:
|
|
7
|
+
*
|
|
8
|
+
* - **`coordinateOf(uprn)`**: rowid B-tree hit on the `uprn` integer PK.
|
|
9
|
+
* - **`nearestUPRN(lat, lon, radiusM)`**: bounded nearest-point search over the res-9 `h3_cell`
|
|
10
|
+
* index — ring-by-ring `gridDisk` expansion with chunked `IN` probes and haversine ranking.
|
|
11
|
+
* Rings stop as soon as geometry proves no unprobed cell could beat the best hit — a distance
|
|
12
|
+
* bound, not POILookup's row-count accumulation, so the early exit can never strand a nearer
|
|
13
|
+
* point in an unprobed ring.
|
|
14
|
+
*
|
|
15
|
+
* ## `null` is a claim, scoped by coverage
|
|
16
|
+
*
|
|
17
|
+
* OS designates Open UPRN complete for GB (every UPRN in AddressBase Premium with geometry), and
|
|
18
|
+
* the builder writes `layer_coverage` with basis `designated` for every cell the product touches.
|
|
19
|
+
* So a `null` from either probe inside a covered cell is evidence of absence — "no such published
|
|
20
|
+
* GB UPRN" / "no UPRN within the radius". Outside coverage (Northern Ireland, the Isle of Man, the
|
|
21
|
+
* Channel Islands, open water) it is UNKNOWN, per the meaning-of-zero rule — callers building
|
|
22
|
+
* negative evidence must consult `readLayerCoverage`, not this reader alone.
|
|
23
|
+
*
|
|
24
|
+
* `latLngToCell`/`gridDisk` come from `h3-js`; the 48-bit short-cell packing is
|
|
25
|
+
* `@mailwoman/spatial`'s `shortCellToInt` via `uprnFullCell` — never reimplemented here.
|
|
26
|
+
*/
|
|
27
|
+
import { DatabaseSync } from "node:sqlite";
|
|
28
|
+
import { haversineKm, shortCellToInt } from "@mailwoman/spatial";
|
|
29
|
+
import { gridDisk } from "h3-js";
|
|
30
|
+
import { allRows } from "./sqlite-utils.js";
|
|
31
|
+
import { uprnFullCell } from "./uprn-schema.js";
|
|
32
|
+
/**
|
|
33
|
+
* Conservative FLOOR on how much CENTRE distance one unit of res-9 GRID distance buys, metres. Adjacent centres sit √3
|
|
34
|
+
* × edge apart (avg edge 174.4 m → ≈302 m); the worst bearing across a ring costs a further ×0.866, and H3's projection
|
|
35
|
+
* distortion shrinks edges by well under the slack this leaves (the true worst is ≈217 m per grid step). Dividing a
|
|
36
|
+
* radius by this over-counts rings and can never miss a cell; multiplying a grid distance by it under-states reach and
|
|
37
|
+
* can never end the ring walk early.
|
|
38
|
+
*/
|
|
39
|
+
const RES9_CENTER_SPACING_FLOOR_M = 150;
|
|
40
|
+
/**
|
|
41
|
+
* Conservative CEILING on a res-9 cell's centre-to-vertex distance, metres (avg edge 174.4 m; distortion stays well
|
|
42
|
+
* under this). A point within `radiusM` of the query sits in a cell whose CENTRE is within `radiusM` + this.
|
|
43
|
+
*/
|
|
44
|
+
const RES9_CELL_RADIUS_CEILING_M = 300;
|
|
45
|
+
/**
|
|
46
|
+
* Hard ceiling on `radiusM`. Keeps the probe bounded (10 km → ~72 rings ≈ 15.8k cells ≈ 18 `IN` chunks); a caller who
|
|
47
|
+
* wants a wider search than "which property is this coordinate" has outgrown this reader and should say so loudly.
|
|
48
|
+
*/
|
|
49
|
+
export const UPRN_MAX_NEAREST_RADIUS_M = 10_000;
|
|
50
|
+
/**
|
|
51
|
+
* `IN`-list chunk size for the cell probe — far under SQLite's 32,766 bound-variable ceiling.
|
|
52
|
+
*/
|
|
53
|
+
const CELL_PROBE_CHUNK = 900;
|
|
54
|
+
/**
|
|
55
|
+
* Node reader over `uprn.db`. `implements Disposable` so callers can `using lookup = new UPRNLookup(...)` — the same
|
|
56
|
+
* precedent as {@link POILookup}.
|
|
57
|
+
*/
|
|
58
|
+
export class UPRNLookup {
|
|
59
|
+
#db;
|
|
60
|
+
#ownsDB;
|
|
61
|
+
/**
|
|
62
|
+
* `uprn` → its point (rowid-alias PK hit).
|
|
63
|
+
*/
|
|
64
|
+
#coordinateProbe;
|
|
65
|
+
constructor(opts) {
|
|
66
|
+
if (opts.database) {
|
|
67
|
+
this.#db = opts.database;
|
|
68
|
+
this.#ownsDB = false;
|
|
69
|
+
}
|
|
70
|
+
else if (opts.databasePath) {
|
|
71
|
+
this.#db = new DatabaseSync(opts.databasePath, { readOnly: true });
|
|
72
|
+
this.#ownsDB = true;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
throw new Error("UPRNLookup needs `databasePath` or `database`");
|
|
76
|
+
}
|
|
77
|
+
this.#coordinateProbe = this.#db.prepare("SELECT lat, lon FROM uprn WHERE uprn = ?");
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The WGS84 point OS publishes for `uprn`, or `null` when the layer holds no such UPRN (see the module docstring for
|
|
81
|
+
* what that `null` claims).
|
|
82
|
+
*/
|
|
83
|
+
coordinateOf(uprn) {
|
|
84
|
+
const row = this.#coordinateProbe.get(uprn);
|
|
85
|
+
return row ? { latitude: row.lat, longitude: row.lon } : null;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* The single nearest UPRN within `radiusM` metres of the query point, or `null` when no UPRN lies inside the radius.
|
|
89
|
+
*
|
|
90
|
+
* Bounded two ways: `radiusM` is capped at {@link UPRN_MAX_NEAREST_RADIUS_M}, and rings expand outward only until no
|
|
91
|
+
* unprobed cell could beat the best hit found so far (or the radius, when nothing has been found). The stop rule is
|
|
92
|
+
* geometric — a cell at grid distance `g` holds no point nearer than `g` × spacing floor − cell radius, using the
|
|
93
|
+
* same conservative constants the reach math uses — so unlike POILookup's row-count accumulation there is no
|
|
94
|
+
* early-exit ambiguity: a break can never strand a nearer point in an unprobed ring. This is what keeps a
|
|
95
|
+
* capped-radius call over dense ground at milliseconds instead of a full-disk fetch (measured 6.4 s → 13 ms for a 10
|
|
96
|
+
* km radius over central London, 41.6M-row layer; an empty-sea miss at the cap runs the full expansion, 74 ms).
|
|
97
|
+
*
|
|
98
|
+
* @throws {RangeError} When `radiusM` is not a positive finite number, or exceeds the cap.
|
|
99
|
+
*/
|
|
100
|
+
nearestUPRN(latitude, longitude, radiusM) {
|
|
101
|
+
if (!Number.isFinite(radiusM) || radiusM <= 0) {
|
|
102
|
+
throw new RangeError(`nearestUPRN: radiusM must be a positive finite number, received ${radiusM}`);
|
|
103
|
+
}
|
|
104
|
+
if (radiusM > UPRN_MAX_NEAREST_RADIUS_M) {
|
|
105
|
+
throw new RangeError(`nearestUPRN: radiusM ${radiusM} exceeds the ${UPRN_MAX_NEAREST_RADIUS_M} m cap`);
|
|
106
|
+
}
|
|
107
|
+
const origin = uprnFullCell(latitude, longitude);
|
|
108
|
+
const seenCells = new Set();
|
|
109
|
+
let best = null;
|
|
110
|
+
// `ring` is H3 grid distance; the loop terminates because the break bound is at most radiusM, which the
|
|
111
|
+
// RangeError above caps.
|
|
112
|
+
for (let ring = 0;; ring++) {
|
|
113
|
+
// A cell at grid distance `ring` holds no point nearer than this. Once it exceeds what could still
|
|
114
|
+
// win — the best hit so far, or the radius itself — further rings cannot improve the answer.
|
|
115
|
+
const closestPossibleM = ring * RES9_CENTER_SPACING_FLOOR_M - RES9_CELL_RADIUS_CEILING_M;
|
|
116
|
+
if (closestPossibleM > Math.min(radiusM, best?.distanceM ?? radiusM))
|
|
117
|
+
break;
|
|
118
|
+
// gridDisk(origin, ring) returns the WHOLE disk out to `ring`; diffing against what's already been
|
|
119
|
+
// probed derives just this ring's new cells (the POILookup pattern).
|
|
120
|
+
const diskCells = gridDisk(origin, ring);
|
|
121
|
+
const newCells = [];
|
|
122
|
+
for (const cell of diskCells) {
|
|
123
|
+
if (!seenCells.has(cell)) {
|
|
124
|
+
seenCells.add(cell);
|
|
125
|
+
newCells.push(shortCellToInt(cell));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
for (let i = 0; i < newCells.length; i += CELL_PROBE_CHUNK) {
|
|
129
|
+
const chunk = newCells.slice(i, i + CELL_PROBE_CHUNK);
|
|
130
|
+
const placeholders = chunk.map(() => "?").join(", ");
|
|
131
|
+
// Prepared fresh per chunk arity — a cold, per-call path, same posture as POILookup's batched hydration.
|
|
132
|
+
const rows = allRows(this.#db.prepare(`SELECT uprn, lat, lon FROM uprn WHERE h3_cell IN (${placeholders})`), ...chunk);
|
|
133
|
+
for (const row of rows) {
|
|
134
|
+
const distanceM = haversineKm(latitude, longitude, row.lat, row.lon) * 1000;
|
|
135
|
+
if (distanceM <= radiusM && (best === null || distanceM < best.distanceM)) {
|
|
136
|
+
best = { uprn: row.uprn, latitude: row.lat, longitude: row.lon, distanceM };
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return best;
|
|
142
|
+
}
|
|
143
|
+
close() {
|
|
144
|
+
if (this.#ownsDB) {
|
|
145
|
+
this.#db.close();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
[Symbol.dispose]() {
|
|
149
|
+
this.close();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
//# sourceMappingURL=uprn-lookup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uprn-lookup.js","sourceRoot":"","sources":["../uprn-lookup.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAe,MAAM,oBAAoB,CAAA;AAC7E,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEhC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAE/C;;;;;;GAMG;AACH,MAAM,2BAA2B,GAAG,GAAG,CAAA;AAEvC;;;GAGG;AACH,MAAM,0BAA0B,GAAG,GAAG,CAAA;AAEtC;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,MAAM,CAAA;AAE/C;;GAEG;AACH,MAAM,gBAAgB,GAAG,GAAG,CAAA;AAkC5B;;;GAGG;AACH,MAAM,OAAO,UAAU;IACtB,GAAG,CAAc;IACjB,OAAO,CAAS;IAEhB;;OAEG;IACM,gBAAgB,CAAqC;IAE9D,YAAY,IAAoB;QAC/B,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAA;YACxB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAA;QACrB,CAAC;aAAM,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YAC9B,IAAI,CAAC,GAAG,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,YAAY,EAAE,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,CAAC,IAAI,KAAK,IAAI,IAAI,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;wBAC3E,IAAI,GAAG,EAAE,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAAC,GAAG,EAAE,SAAS,EAAE,CAAA;oBAC5E,CAAC;gBACF,CAAC;YACF,CAAC;QACF,CAAC;QAED,OAAO,IAAI,CAAA;IACZ,CAAC;IAED,KAAK;QACJ,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAA;QACjB,CAAC;IACF,CAAC;IAED,CAAC,MAAM,CAAC,OAAO,CAAC;QACf,IAAI,CAAC,KAAK,EAAE,CAAA;IACb,CAAC;CACD"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @copyright Sister Software
|
|
3
|
+
* @license AGPL-3.0
|
|
4
|
+
* @author Teffen Ellis, et al.
|
|
5
|
+
*
|
|
6
|
+
* Typed schema for `uprn.db` — the OS Open UPRN spatial layer: every GB Unique Property Reference
|
|
7
|
+
* Number with its WGS84 point, so mailwoman results can carry UPRN as an interoperability key
|
|
8
|
+
* beside our own `@mailwoman/address-id`. One rowid table keyed `uprn INTEGER PRIMARY KEY` (the
|
|
9
|
+
* rowid alias — the optimal shape for an integer-PK point table; `WITHOUT ROWID` buys nothing
|
|
10
|
+
* here), plus a secondary res-9 `h3_cell` index for the bounded nearest-point probe.
|
|
11
|
+
*
|
|
12
|
+
* ## Coordinates are OS's own WGS84 columns
|
|
13
|
+
*
|
|
14
|
+
* The source CSV publishes BOTH coordinate systems per row — OSGB36 eastings/northings AND WGS84
|
|
15
|
+
* `LATITUDE`/`LONGITUDE`. This layer stores OS's own lat/lon verbatim and never reconverts from
|
|
16
|
+
* eastings: `@mailwoman/spatial`'s `osgb36ToWGS84` is a 7-parameter Helmert with a measured p95 of
|
|
17
|
+
* 4.18 m, and re-deriving what the publisher already computed (with OSTN15, exactly) would replace
|
|
18
|
+
* their answer with a strictly worse one.
|
|
19
|
+
*
|
|
20
|
+
* ## Why `h3_cell` exists at all
|
|
21
|
+
*
|
|
22
|
+
* The layer contract requires every domain row to be addressable by at least one spine key —
|
|
23
|
+
* `writeLayerManifest` throws on a manifest that declares none — and UPRN is its own id space, not
|
|
24
|
+
* H3/WOF/address-id/street. The res-9 short cell (`shortCellToInt`, the same packing as poi.db and
|
|
25
|
+
* the OSM situs shards) is the spine that fits a point table, and its index doubles as the
|
|
26
|
+
* `nearestUPRN` ring probe.
|
|
27
|
+
*
|
|
28
|
+
* The DB also embeds the layer-contract tables from `@mailwoman/core/layers`; the builder
|
|
29
|
+
* (`packages/mailwoman/gazetteer-pipeline/uprn-layer.ts`) writes the manifest and per-res-6-cell
|
|
30
|
+
* coverage.
|
|
31
|
+
*/
|
|
32
|
+
import type { LayerContractDatabase } from "@mailwoman/core/layers";
|
|
33
|
+
import { type H3Cell } from "@mailwoman/spatial";
|
|
34
|
+
import type { Kysely } from "kysely";
|
|
35
|
+
/**
|
|
36
|
+
* Resolution the `uprn` table's `h3_cell` column is keyed at — the shared layer-spine resolution (poi.db, the OSM situs
|
|
37
|
+
* shards).
|
|
38
|
+
*/
|
|
39
|
+
export declare const UPRN_H3_RESOLUTION = 9;
|
|
40
|
+
/**
|
|
41
|
+
* Resolution of the layer's `layer_coverage` cells — coarse, per the contract (matches poi.db).
|
|
42
|
+
*/
|
|
43
|
+
export declare const UPRN_COVERAGE_H3_RESOLUTION = 6;
|
|
44
|
+
/**
|
|
45
|
+
* One UPRN point. `uprn` is the rowid alias, so the primary probe (`coordinateOf`) is a rowid B-tree hit.
|
|
46
|
+
*/
|
|
47
|
+
export interface UPRNTable {
|
|
48
|
+
/**
|
|
49
|
+
* The Unique Property Reference Number — up to 12 digits, so always within `Number.MAX_SAFE_INTEGER`.
|
|
50
|
+
*/
|
|
51
|
+
uprn: number;
|
|
52
|
+
/**
|
|
53
|
+
* WGS84 latitude, as OS published it (never reconverted from eastings — see the module docstring).
|
|
54
|
+
*/
|
|
55
|
+
lat: number;
|
|
56
|
+
/**
|
|
57
|
+
* WGS84 longitude, as OS published it.
|
|
58
|
+
*/
|
|
59
|
+
lon: number;
|
|
60
|
+
/**
|
|
61
|
+
* 48-bit short H3 cell at {@link UPRN_H3_RESOLUTION} (`uprnH3Cell`) — the layer-contract spine key and the
|
|
62
|
+
* `nearestUPRN` probe index.
|
|
63
|
+
*/
|
|
64
|
+
h3_cell: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Build-provenance key/value pairs the fixed `layer_manifest` columns have no room for: quality-drop counts, the header
|
|
68
|
+
* as found, the upstream licence text verbatim (the Code-Point provenance discipline).
|
|
69
|
+
*/
|
|
70
|
+
export interface UPRNMetaTable {
|
|
71
|
+
key: string;
|
|
72
|
+
value: string;
|
|
73
|
+
}
|
|
74
|
+
export interface UPRNDatabase extends LayerContractDatabase {
|
|
75
|
+
uprn: UPRNTable;
|
|
76
|
+
uprn_meta: UPRNMetaTable;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* The full res-9 cell for a UPRN point — the ONE derivation both the builder and every consumer share, so a fixture
|
|
80
|
+
* built by a test and a row built by the real ingest can never disagree on which cell a coordinate keys to.
|
|
81
|
+
*/
|
|
82
|
+
export declare function uprnFullCell(latitude: number, longitude: number): H3Cell;
|
|
83
|
+
/**
|
|
84
|
+
* The `h3_cell` column value for a UPRN point: {@link uprnFullCell} packed to the shared 48-bit short-cell integer.
|
|
85
|
+
*/
|
|
86
|
+
export declare function uprnH3Cell(latitude: number, longitude: number): number;
|
|
87
|
+
export declare function createUPRNTable(db: Kysely<UPRNDatabase>): Promise<void>;
|
|
88
|
+
export declare function createUPRNMetaTable(db: Kysely<UPRNDatabase>): Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Secondary index for the `nearestUPRN` ring probe. Builders call this AFTER the bulk load (index-after-load).
|
|
91
|
+
*/
|
|
92
|
+
export declare function createUPRNIndexes(db: Kysely<UPRNDatabase>): Promise<void>;
|
|
93
|
+
//# sourceMappingURL=uprn-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uprn-schema.d.ts","sourceRoot":"","sources":["../uprn-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AACnE,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEpC;;;GAGG;AACH,eAAO,MAAM,kBAAkB,IAAI,CAAA;AAEnC;;GAEG;AACH,eAAO,MAAM,2BAA2B,IAAI,CAAA;AAE5C;;GAEG;AACH,MAAM,WAAW,SAAS;IACzB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,GAAG,EAAE,MAAM,CAAA;IACX;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAa,SAAQ,qBAAqB;IAC1D,IAAI,EAAE,SAAS,CAAA;IACf,SAAS,EAAE,aAAa,CAAA;CACxB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAExE;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAEtE;AAED,wBAAsB,eAAe,CAAC,EAAE,EAAE,MAAM,CAAC,YA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