@mailwoman/zoning 10.3.0 → 10.5.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 CHANGED
@@ -11,7 +11,7 @@ zoning is represented in the layer.** That figure describes jurisdictions only.
11
11
  does not mean that a zoning polygon covers your address.
12
12
 
13
13
  **The artifact is built locally and never redistributed.** Three published statements disagree about the
14
- source's license, so the manifest carries `tier: build-local` and `license: NOASSERTION`. The builder refuses
14
+ source's license, so the manifest records `tier: build-local` and `license: NOASSERTION`. The builder refuses
15
15
  a `shipped` tier until the license question is resolved in writing. See _License and posture_ below.
16
16
 
17
17
  ## What it reports, and what it refuses to
@@ -28,21 +28,21 @@ zones the Environment Agency states England-wide coverage, and the Planning Prac
28
28
  as the land outside Zones 2 and 3, so an empty flood answer inside England is a designation. The zoning layer has no
29
29
  such definition anywhere. A location with no zoning polygon can be in at least four different situations:
30
30
 
31
- 1. Outside any adopted plan area, which covers most land in most countries. The authority has made no statement.
31
+ 1. Outside any adopted plan area. Most land in most countries lies outside one. The authority has made no statement.
32
32
  2. Inside a plan area, on land the plan does not zone.
33
33
  3. In a jurisdiction that has never adopted zoning at all.
34
- 4. In a jurisdiction whose records nobody has read or published yet.
34
+ 4. In a jurisdiction whose records no person or program has read or published yet.
35
35
 
36
- **The source states one of these cases explicitly, which shows that the other cases are absences.** It
37
- carries `ZONE_ORIG = "UNZ - Unzoned"` with `ZONE_GZT = "N/A"` on 4 of its 85,330 rows. When the authority
36
+ **The source states one of these cases explicitly. That shows the other cases are absences.** It
37
+ stores `ZONE_ORIG = "UNZ - Unzoned"` with `ZONE_GZT = "N/A"` on 4 of its 85,330 rows. When the authority
38
38
  means unzoned, it writes that on a row. Every other absence is a missing row.
39
39
 
40
- Every `layer_coverage` row therefore carries `basis = source_present`. The reader refuses to open an artifact
41
- that carries anything stronger, and the observation stays silent where no polygon contains the point.
40
+ Every `layer_coverage` row therefore records `basis = source_present`. The reader refuses to open an artifact
41
+ that records any stronger basis, and the observation stays silent where no polygon contains the point.
42
42
 
43
43
  **Neither reading states what may be built.** The Department states that its data are "not published here as
44
44
  legal definitions of the current actuality with regard to Local Authority zoning or their geographic extents"
45
- and that "Original data should be sourced directly from the relevant Local Authority". Every reading carries
45
+ and that "Original data should be sourced directly from the relevant Local Authority". Every reading is subject to
46
46
  those exclusions.
47
47
 
48
48
  ## The vocabulary decision — the verbatim code, and the crosswalk beside it
@@ -67,21 +67,21 @@ Council's `Special Policy Area` takes **14** different generic types, its `Green
67
67
  and Clare's `Utilities` takes **11**. A person assigned the mapping per polygon while reading a plan, and it
68
68
  cannot be reconstructed from the pair of columns.
69
69
 
70
- `zoning_area` therefore carries **both** columns, and `zoning_crosswalk_edge` ships **empty**. Code checks
70
+ `zoning_area` therefore stores **both** columns, and `zoning_crosswalk_edge` ships **empty**. Code checks
71
71
  this: `assertCrosswalkIsNotATable` refuses a build that would write an edge while any pair maps to more than
72
72
  one type.
73
73
 
74
- The Department says the same thing in the item description:
74
+ The Department states the same point in the item description:
75
75
 
76
76
  > This represents a consistent zoning scheme across all local authorities, and **complements (rather than
77
77
  > replaces) the existing statutory zoning used for each individual plan**.
78
78
 
79
79
  **The declared domain is closed, and the source already violates it.** The domain declares 54 codes and the
80
- data uses 55, because `N/A` appears on 4 rows and in no domain. `zoning_vocabulary` therefore carries the
80
+ data uses 55, because `N/A` appears on 4 rows and in no domain. `zoning_vocabulary` therefore stores the
81
81
  declared domain **plus** the values observed in the data, and the `declared` column separates them. A merge of the
82
82
  two would either hide a source-schema change or invent a declaration that the Department never made. For the
83
83
  same reason, a declared code that the data never uses is kept with `observed_rows = 0`. `SDZ` is a real plan
84
- level that nobody has used yet.
84
+ level that no row in the data uses yet.
85
85
 
86
86
  ## Three measured source behaviors a builder has to know
87
87
 
@@ -104,7 +104,7 @@ The gap between those two readings is the signal, and the 1% build tolerance sit
104
104
  each side. Irish Transverse Mercator's scale factor and the spherical approximation together contribute a few
105
105
  tenths of a percent, and ignoring holes contributes ten times that.
106
106
 
107
- 89,967 rings are clockwise and 3,516 are counter-clockwise, and 1,309 features carry both windings. Of those,
107
+ 89,967 rings are clockwise and 3,516 are counter-clockwise, and 1,309 features contain both windings. Of those,
108
108
  1,210 nest their holes inside one polygon part as RFC 7946 expects. The rest put every ring in its own
109
109
  `MultiPolygon` part. The largest feature in the country, Meath's `RA - Rural Area`, arrives as 107 single-ring
110
110
  parts, of which 5 are clockwise and 102 counter-clockwise. **Both encodings reach the ingest, and orientation is
@@ -112,12 +112,12 @@ the only signal that means the same thing in both.**
112
112
 
113
113
  **Two residual cases are measured and handled instead of rejected.** Nine of the 3,516 holes share their
114
114
  parent's boundary instead of sitting inside it. Each is a sliver under 1.7 m², and each is assigned to the
115
- smallest exterior of its own feature, which on eight of the nine is the feature's only exterior. **Exactly one
115
+ smallest exterior of its own feature. On eight of the nine, that is the feature's only exterior. **Exactly one
116
116
  feature of 85,330** has no ring that the rule can read as an exterior: `OBJECTID` 74040, Galway County
117
117
  Council's `Agriculture`, a three-vertex ring enclosing 3.0 × 10⁻⁷ m². At that magnitude a ring's winding is
118
118
  floating-point noise and not something the publisher stated. It reads clockwise in the source's own Irish
119
119
  Transverse Mercator meters and counter-clockwise after reprojection. The largest ring by magnitude therefore
120
- becomes the exterior, which is also the correct reading for a feature published wholly inverted. The build
120
+ becomes the exterior. The same rule gives the correct reading for a feature published wholly inverted. The build
121
121
  receipt reports both counts explicitly.
122
122
 
123
123
  The area error is 4.1%, and it is the harmless consequence. The harmful consequence is that a ray cast
@@ -132,7 +132,7 @@ conversion written as CSV/WKT keeps the source's 5/102 split intact.
132
132
  ### The publisher's own area column is not in the archive
133
133
 
134
134
  `Shape__Area` is a service field, and the bulk GeoJSON export drops it. The area cross-check therefore reads
135
- it from the live service, which makes the check compare two independent paths instead of comparing the
135
+ it from the live service. The check therefore compares two independent paths instead of comparing the
136
136
  archive with itself. The measured value is 5,444,492,956.40 m² over 85,330 features.
137
137
 
138
138
  ### The definition host has no DNS record
@@ -161,16 +161,16 @@ A probe walks the index first and reads the geometry only for a cell that a boun
161
161
  **The index records every cell that touches a polygon, never only cells whose center lies in it**, and a
162
162
  feature that reaches no cell fails the build. The measurements require this. `polygonToCells`, the usual
163
163
  first choice of polyfill, returns no cells for most of these polygons. Every dropped polygon would appear
164
- downstream as an absence of zoning, which is exactly the question this layer exists to answer.
164
+ downstream as an absence of zoning. Whether a location is zoned is the question this layer exists to answer.
165
165
 
166
166
  `zoning_cell` rows are **mixed-resolution**. Each feature's whole tier is compacted toward parent cells, so a
167
- row carries its own `resolution`, and a probe walks its own `cellToParent` chain over every resolution the
167
+ row stores its own `resolution`, and a probe walks its own `cellToParent` chain over every resolution the
168
168
  table holds. `layer_coverage` stays single-resolution.
169
169
 
170
170
  ## The resolution is a measurement, and not the one the size interface names
171
171
 
172
172
  The inherited size interface picks a resolution from the measured `partial` share. **For this subject that
173
- statistic carries no signal**, and measurement shows why. Most zoning polygons are smaller than a cell:
173
+ statistic does not separate the candidates**, and measurement shows why. Most zoning polygons are smaller than a cell:
174
174
 
175
175
  | percentile | p1 | p5 | p10 | p25 | **p50** | p75 | p90 | p95 | p99 |
176
176
  | ---------- | --: | --: | --: | ----: | --------: | -----: | -----: | -----: | ------: |
@@ -193,7 +193,7 @@ over the full national set:
193
193
  **Resolution 10 was chosen from those numbers.** A move from 9 to 10 reduces the p90 candidate count from 9 to
194
194
  3, a threefold reduction in the geometry a fringe probe reads, for 4.9× the stored rows. A move from 10 to 11
195
195
  reduces p90 from 3 to 2 for another 4.7× the rows. The curve bends at 10. The `partial` share (58.0 / 40.6 /
196
- 37.0%) shows no bend at all, which confirms that it is the wrong column to choose on.
196
+ 37.0%) shows no bend at all. That confirms it is the wrong column to choose on.
197
197
 
198
198
  **The polyfill column shows the most dangerous failure.** At resolution 9, `polygonToCells` returns no cells
199
199
  for **73,068 of 85,330 polygons (85.6%)**, because no cell center falls inside them. A builder that indexed
@@ -212,7 +212,7 @@ The full national build ran on this lab at the chosen resolution 10, with covera
212
212
  | what | measured |
213
213
  | ------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
214
214
  | acquisition | 247,452,342 bytes in 42.0 s, one anonymous request following the Hub job's redirect |
215
- | features | **85,330**; the archive, the service's `returnCountOnly` and the build all agree |
215
+ | features | **85,330**, and the archive, the service's `returnCountOnly` and the build all agree |
216
216
  | authorities / plans | **30** local authorities, **63** plans |
217
217
  | rings | 93,483 total · 89,967 exterior · 3,516 hole · 3,507 holes nested · **9** on a parent's boundary · **1** exterior by magnitude |
218
218
  | cells | 64,273 whole (compacted) + 465,702 partial = **529,975** rows, at resolutions 6/7/8/9/10 · 0 features coarsened |
@@ -262,7 +262,7 @@ reported the whole island as zoned.
262
262
  **Three published statements disagree about the grant**, all read 2026-08-27:
263
263
 
264
264
  1. `data.gov.ie` declares `license_id: "CC-BY-4.0"`.
265
- 2. The ArcGIS item's `licenseInfo` says the Department "aims to publish its data holdings into the future,
265
+ 2. The ArcGIS item's `licenseInfo` states that the Department "aims to publish its data holdings into the future,
266
266
  **where possible**, as Open Data licensed under Creative Commons Attribution 4.0" and, in the same field,
267
267
  that copyright "belonging to our licensors (**Tailte Éireann**) may not be copied, transmitted or reproduced
268
268
  without their prior consent. … © Tailte Éireann. All rights reserved. License No. 2023/OSi_NMA_073".
@@ -271,13 +271,13 @@ reported the whole island as zoned.
271
271
 
272
272
  A shipped layer needs one grant that it can quote, and this record does not have one. As a result:
273
273
 
274
- - `layer_manifest.license` is **`NOASSERTION`**, SPDX's own token for a determination nobody has made. A `CC-BY-4.0` value
275
- `CC-BY-4.0` there while an all-rights-reserved clause identifies a licensor would mean this program asserting
274
+ - `layer_manifest.license` is **`NOASSERTION`**, SPDX's own token for a license that no one has determined. A
275
+ `CC-BY-4.0` value there while an all-rights-reserved clause identifies a licensor would mean this program asserting
276
276
  a grant.
277
277
  - `layer_manifest.tier` is **`build-local`**, and `assertTierMatchesLicense` refuses a `shipped` build while the
278
278
  license reads `NOASSERTION`. A tier change requires a deliberate edit at a line that states what is
279
279
  unresolved.
280
- - `layer_manifest.attribution` carries **both parts**, the Department's credit line and the Tailte Éireann
280
+ - `layer_manifest.attribution` stores **both parts**, the Department's credit line and the Tailte Éireann
281
281
  clause, because a re-user who saw only the first would not know that the second exists.
282
282
 
283
283
  **What would change it:** The myplan.ie disclaimer points to a fourth statement as authoritative ("For full
@@ -286,11 +286,11 @@ ArcGIS instant-app configurations linked from the viewer page were read, and nei
286
286
  viewer. The splash text is the single fact that would move this layer from `build-local` to `shipped`.
287
287
 
288
288
  The npm package is unaffected. `@mailwoman/zoning` publishes with every release from `.release-it.json`'s
289
- workspace list. The `build-local` tier applies to the data alone.
289
+ workspace list. The `build-local` tier applies only to the data.
290
290
 
291
291
  ## The mapped-footprint question — what is settled, and what would change it
292
292
 
293
- `zoning_mapped_extent` ships **empty**, which records that no mapped footprint is known. The Department states
293
+ `zoning_mapped_extent` ships **empty**. The empty table records that no mapped footprint is known. The Department states
294
294
  "Awaiting data for some Local Authorities - please see map viewer for coverage details" and publishes that
295
295
  detail only inside a map application. Donegal's absence was found by measuring `LA_CODE`, not read from a
296
296
  coverage statement. It is unknown whether other authorities are only partially represented.
package/lib/index.ts CHANGED
@@ -189,7 +189,7 @@ export interface ZoningReading {
189
189
  /**
190
190
  * The coverage row for the location, when the product has data in that cell.
191
191
  *
192
- * Its basis is always `source_present`, which only shows that the source has data nearby.
192
+ * Its basis is always `source_present`, which only shows that the source has data in the coverage cell.
193
193
  * Neither a present nor an absent coverage row means the location is unrestricted.
194
194
  */
195
195
  coverage: (CoverageCell & { h3CellIndex: string; resolution: number }) | null
package/lib/ring-roles.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  import { pointInRing, ringSignedAreaM2, type MultiPolygonRings } from "@mailwoman/spatial"
11
11
 
12
12
  /**
13
- * How many of a hole's vertices are tested against a candidate exterior.
13
+ * The count of a hole's vertices that are tested against a candidate exterior.
14
14
  *
15
15
  * A hole and its exterior share vertices.
16
16
  * One vertex cannot distinguish them.
package/lib/schema.ts CHANGED
@@ -101,7 +101,7 @@ export interface ZoningAreaTable {
101
101
  max_lat: number
102
102
  max_lon: number
103
103
  /**
104
- * How many rings the source published for this feature, with `signed_area_m2`,
104
+ * The count of rings the source published for this feature, with `signed_area_m2`,
105
105
  * the ingest's own receipt that the orientation was read rather than assumed.
106
106
  */
107
107
  ring_count: number
@@ -193,7 +193,7 @@ export interface ZoningVocabularyTable {
193
193
  */
194
194
  declared: number
195
195
  /**
196
- * How many rows of this artifact contain the code.
196
+ * The count of rows of this artifact that contain the code.
197
197
  *
198
198
  * A census a reader checks a closed domain against, rather than a claim about the world.
199
199
  */
package/out/index.d.ts CHANGED
@@ -152,7 +152,7 @@ export interface ZoningReading {
152
152
  /**
153
153
  * The coverage row for the location, when the product has data in that cell.
154
154
  *
155
- * Its basis is always `source_present`, which only shows that the source has data nearby.
155
+ * Its basis is always `source_present`, which only shows that the source has data in the coverage cell.
156
156
  * Neither a present nor an absent coverage row means the location is unrestricted.
157
157
  */
158
158
  coverage: (CoverageCell & {
package/out/ring-roles.js CHANGED
@@ -8,7 +8,7 @@
8
8
  */
9
9
  import { pointInRing, ringSignedAreaM2 } from "@mailwoman/spatial";
10
10
  /**
11
- * How many of a hole's vertices are tested against a candidate exterior.
11
+ * The count of a hole's vertices that are tested against a candidate exterior.
12
12
  *
13
13
  * A hole and its exterior share vertices.
14
14
  * One vertex cannot distinguish them.
package/out/schema.d.ts CHANGED
@@ -92,7 +92,7 @@ export interface ZoningAreaTable {
92
92
  max_lat: number;
93
93
  max_lon: number;
94
94
  /**
95
- * How many rings the source published for this feature, with `signed_area_m2`,
95
+ * The count of rings the source published for this feature, with `signed_area_m2`,
96
96
  * the ingest's own receipt that the orientation was read rather than assumed.
97
97
  */
98
98
  ring_count: number;
@@ -181,7 +181,7 @@ export interface ZoningVocabularyTable {
181
181
  */
182
182
  declared: number;
183
183
  /**
184
- * How many rows of this artifact contain the code.
184
+ * The count of rows of this artifact that contain the code.
185
185
  *
186
186
  * A census a reader checks a closed domain against, rather than a claim about the world.
187
187
  */
@@ -108,7 +108,7 @@ export interface BuildZoningResult {
108
108
  storedPartialShare: number;
109
109
  /**
110
110
  * Features forced coarser than `indexResolution`, and the resolutions the stored
111
- * cell rows are actually at, reported rather than smoothed over.
111
+ * cell rows are at, reported rather than smoothed over.
112
112
  */
113
113
  coarsenedFeatures: number;
114
114
  storedResolutions: number[];
@@ -144,8 +144,8 @@ export interface BuildZoningResult {
144
144
  signedKM2: number;
145
145
  };
146
146
  /**
147
- * The vocabulary census, per scheme: how many codes the artifact holds
148
- * and how many of them the publisher never declared.
147
+ * The vocabulary census, per scheme: the count of codes the artifact holds
148
+ * and the count of those codes the publisher never declared.
149
149
  */
150
150
  vocabulary: Array<{
151
151
  scheme: string;
@@ -154,7 +154,7 @@ export interface BuildZoningResult {
154
154
  undeclaredCodes: string[];
155
155
  }>;
156
156
  /**
157
- * (authority, local code) pairs and how many take more than one generic type,
157
+ * (authority, local code) pairs and the count of pairs that take more than one generic type,
158
158
  * the measurement that keeps `zoning_crosswalk_edge` empty.
159
159
  */
160
160
  crosswalk: {
@@ -31,7 +31,7 @@ export interface CellIndexMeasurement {
31
31
  */
32
32
  partialShare: number;
33
33
  /**
34
- * Whole cells after per-feature `compactCells` — the rows actually stored on the whole side.
34
+ * Whole cells after per-feature `compactCells` — the rows stored on the whole side.
35
35
  */
36
36
  compactedWholeCells: number;
37
37
  /**
@@ -60,7 +60,7 @@ export interface AgreementRow {
60
60
  serviceLocalCode: string | null;
61
61
  result: "agree" | "disagree" | "boundary_tolerance";
62
62
  /**
63
- * Meters from the point to the nearest edge of any polygon the service returned nearby.
63
+ * Meters from the point to the nearest edge of any polygon the service returned for the query box.
64
64
  *
65
65
  * Every row includes this distance.
66
66
  * It separates a real defect from a difference caused by the two channels
@@ -123,10 +123,10 @@ export type ServiceFeatureReader = (latitude: number, longitude: number) => Prom
123
123
  /**
124
124
  * The reader the live check uses: a bounding-box query against the Department's own service.
125
125
  *
126
- * The service answers a BOX rather than a point, so this returns what it published nearby
127
- * and the containment decision is made in {@link readServiceContainment} against
128
- * those rings — comparing the artifact's verdict against a bare "the service returned
129
- * something here" would pass on any polygon within eleven meters.
126
+ * The service answers a BOX rather than a point, so this returns what it published inside
127
+ * the query box and the containment decision is made in {@link readServiceContainment}
128
+ * against those rings — comparing the artifact's verdict against a bare "the service
129
+ * returned something here" would pass on any polygon within eleven meters.
130
130
  */
131
131
  export declare function createServiceReader(client: Pick<GZTClient, "readFeaturesNear">): ServiceFeatureReader;
132
132
  export interface VerifyZoningOptions {
package/out/sdk/verify.js CHANGED
@@ -78,10 +78,10 @@ const BOUNDARY_TOLERANCE_METRES = 0.5;
78
78
  /**
79
79
  * The reader the live check uses: a bounding-box query against the Department's own service.
80
80
  *
81
- * The service answers a BOX rather than a point, so this returns what it published nearby
82
- * and the containment decision is made in {@link readServiceContainment} against
83
- * those rings — comparing the artifact's verdict against a bare "the service returned
84
- * something here" would pass on any polygon within eleven meters.
81
+ * The service answers a BOX rather than a point, so this returns what it published inside
82
+ * the query box and the containment decision is made in {@link readServiceContainment}
83
+ * against those rings — comparing the artifact's verdict against a bare "the service
84
+ * returned something here" would pass on any polygon within eleven meters.
85
85
  */
86
86
  export function createServiceReader(client) {
87
87
  return async (latitude, longitude) => client.readFeaturesNear(latitude, longitude, PROBE_HALF_WIDTH_DEGREES);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mailwoman/zoning",
3
- "version": "10.3.0",
3
+ "version": "10.5.0",
4
4
  "description": "Irish Generalised Zoning Types (MyPlan.ie) — acquisition, build, and the zoning-ireland.db layer reader",
5
5
  "keywords": [
6
6
  "geospatial",
@@ -107,14 +107,14 @@
107
107
  "test": "vitest run"
108
108
  },
109
109
  "dependencies": {
110
- "@mailwoman/core": "10.3.0",
111
- "@mailwoman/evidence": "10.3.0",
112
- "@mailwoman/spatial": "10.3.0",
113
- "@mailwoman/sqlite": "10.3.0",
110
+ "@mailwoman/core": "10.5.0",
111
+ "@mailwoman/evidence": "10.5.0",
112
+ "@mailwoman/spatial": "10.5.0",
113
+ "@mailwoman/sqlite": "10.5.0",
114
114
  "h3-js": "^4.5.0",
115
115
  "kysely": "^0.29.6",
116
116
  "path-ts": "^2.5.0",
117
- "spliterator": "^9.2.0"
117
+ "spliterator": "^9.2.1"
118
118
  },
119
119
  "engines": {
120
120
  "node": ">=24.18.0"
@@ -154,7 +154,7 @@ export interface BuildZoningResult {
154
154
  storedPartialShare: number
155
155
  /**
156
156
  * Features forced coarser than `indexResolution`, and the resolutions the stored
157
- * cell rows are actually at, reported rather than smoothed over.
157
+ * cell rows are at, reported rather than smoothed over.
158
158
  */
159
159
  coarsenedFeatures: number
160
160
  storedResolutions: number[]
@@ -188,12 +188,12 @@ export interface BuildZoningResult {
188
188
  */
189
189
  area: AreaAgreementReading & { signedKM2: number }
190
190
  /**
191
- * The vocabulary census, per scheme: how many codes the artifact holds
192
- * and how many of them the publisher never declared.
191
+ * The vocabulary census, per scheme: the count of codes the artifact holds
192
+ * and the count of those codes the publisher never declared.
193
193
  */
194
194
  vocabulary: Array<{ scheme: string; codes: number; undeclared: number; undeclaredCodes: string[] }>
195
195
  /**
196
- * (authority, local code) pairs and how many take more than one generic type,
196
+ * (authority, local code) pairs and the count of pairs that take more than one generic type,
197
197
  * the measurement that keeps `zoning_crosswalk_edge` empty.
198
198
  */
199
199
  crosswalk: {
package/sdk/cells.ts CHANGED
@@ -49,7 +49,7 @@ export interface CellIndexMeasurement {
49
49
  */
50
50
  partialShare: number
51
51
  /**
52
- * Whole cells after per-feature `compactCells` — the rows actually stored on the whole side.
52
+ * Whole cells after per-feature `compactCells` — the rows stored on the whole side.
53
53
  */
54
54
  compactedWholeCells: number
55
55
  /**
package/sdk/verify.ts CHANGED
@@ -75,7 +75,7 @@ export interface AgreementRow {
75
75
  serviceLocalCode: string | null
76
76
  result: "agree" | "disagree" | "boundary_tolerance"
77
77
  /**
78
- * Meters from the point to the nearest edge of any polygon the service returned nearby.
78
+ * Meters from the point to the nearest edge of any polygon the service returned for the query box.
79
79
  *
80
80
  * Every row includes this distance.
81
81
  * It separates a real defect from a difference caused by the two channels
@@ -166,10 +166,10 @@ export type ServiceFeatureReader = (latitude: number, longitude: number) => Prom
166
166
  /**
167
167
  * The reader the live check uses: a bounding-box query against the Department's own service.
168
168
  *
169
- * The service answers a BOX rather than a point, so this returns what it published nearby
170
- * and the containment decision is made in {@link readServiceContainment} against
171
- * those rings — comparing the artifact's verdict against a bare "the service returned
172
- * something here" would pass on any polygon within eleven meters.
169
+ * The service answers a BOX rather than a point, so this returns what it published inside
170
+ * the query box and the containment decision is made in {@link readServiceContainment}
171
+ * against those rings — comparing the artifact's verdict against a bare "the service
172
+ * returned something here" would pass on any polygon within eleven meters.
173
173
  */
174
174
  export function createServiceReader(client: Pick<GZTClient, "readFeaturesNear">): ServiceFeatureReader {
175
175
  return async (latitude, longitude) => client.readFeaturesNear(latitude, longitude, PROBE_HALF_WIDTH_DEGREES)