@mailwoman/spatial 11.1.0 → 11.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 +1 -0
- package/lib/digipin.ts +282 -0
- package/lib/index.ts +2 -1
- package/lib/open-location-code.ts +45 -30
- package/lib/point/reading.ts +323 -0
- package/lib/point/text.ts +70 -0
- package/out/digipin.d.ts +94 -0
- package/out/digipin.d.ts.map +1 -0
- package/out/digipin.js +242 -0
- package/out/digipin.js.map +1 -0
- package/out/index.d.ts +2 -1
- package/out/index.d.ts.map +1 -1
- package/out/index.js +2 -1
- package/out/index.js.map +1 -1
- package/out/open-location-code.d.ts +24 -16
- package/out/open-location-code.d.ts.map +1 -1
- package/out/open-location-code.js +27 -27
- package/out/open-location-code.js.map +1 -1
- package/out/point/reading.d.ts +144 -0
- package/out/point/reading.d.ts.map +1 -0
- package/out/point/reading.js +167 -0
- package/out/point/reading.js.map +1 -0
- package/out/point/text.d.ts +117 -0
- package/out/point/text.d.ts.map +1 -0
- package/out/point/text.js +44 -0
- package/out/point/text.js.map +1 -0
- package/out/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +6 -5
- package/lib/point-query.ts +0 -294
- package/out/point-query.d.ts +0 -71
- package/out/point-query.d.ts.map +0 -1
- package/out/point-query.js +0 -194
- package/out/point-query.js.map +0 -1
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
/**
|
|
4
|
+
* @file What a typed query resolves to when it is a point rather than an address, read from recognitions.
|
|
5
|
+
*
|
|
6
|
+
* A search field receives coordinates in a dozen spellings, a plus code, an H3 cell, a geohash or a
|
|
7
|
+
* Who's On First id beside ordinary addresses. {@link recognizePointQuery} runs one recognizer over the `coordinates`,
|
|
8
|
+
* `spatial` and `identifiers` families of `@mailwoman/recognizer` and answers from the recognition that spans the text.
|
|
9
|
+
* It decodes no cell: decoding a code to a coordinate belongs to the module that owns the format,
|
|
10
|
+
* and the H3 reader loads a WebAssembly binary that a text test shouldn't pay for.
|
|
11
|
+
*
|
|
12
|
+
* # What makes a recognition a reading
|
|
13
|
+
*
|
|
14
|
+
* A recognition is trusted when the engine's validator accepted it and its span is the whole text.
|
|
15
|
+
* An embedded span or a rejected recognition never becomes a reading: `Apt 4, 12 Main St` holds the valid pair `4, 12`.
|
|
16
|
+
*
|
|
17
|
+
* The grammars admit no white space around a value, so **the caller trims** the text before it is read.
|
|
18
|
+
* The earth app trims where it takes the typed input.
|
|
19
|
+
*
|
|
20
|
+
* # One handler for every kind
|
|
21
|
+
*
|
|
22
|
+
* `handlers` has an entry for each kind of the three families, and the object is checked against
|
|
23
|
+
* `HandlerMap<typeof families>`. A kind added to any family fails the TypeScript build until it has a handler.
|
|
24
|
+
* A handler returns a point reading, or a {@link NotAPointQuery} with the recognized kind and the reason it isn't a point.
|
|
25
|
+
*/
|
|
26
|
+
import { createRecognizer, } from "@mailwoman/recognizer";
|
|
27
|
+
import { coordinates } from "@mailwoman/recognizer/coordinates";
|
|
28
|
+
import { isDeterministicSpatial } from "@mailwoman/recognizer/deterministic/spatial";
|
|
29
|
+
import { identifiers } from "@mailwoman/recognizer/identifiers";
|
|
30
|
+
import { spatial } from "@mailwoman/recognizer/spatial";
|
|
31
|
+
/**
|
|
32
|
+
* The families a point query is read from, composed once.
|
|
33
|
+
*/
|
|
34
|
+
const families = [coordinates, spatial, identifiers];
|
|
35
|
+
const recognizer = createRecognizer(families);
|
|
36
|
+
/**
|
|
37
|
+
* The payload of a recognition the reader has already checked is validated.
|
|
38
|
+
*
|
|
39
|
+
* A recognition without one is a defect in the reader, so it throws rather than answering with an absence.
|
|
40
|
+
*/
|
|
41
|
+
function payloadOf(recognition) {
|
|
42
|
+
const { validation } = recognition;
|
|
43
|
+
if (validation.status !== "validated") {
|
|
44
|
+
throw new RangeError(`${recognition.kind} reached its point handler without a validated payload`);
|
|
45
|
+
}
|
|
46
|
+
return validation.payload;
|
|
47
|
+
}
|
|
48
|
+
function coordinatePair(recognition) {
|
|
49
|
+
const { latitude, longitude, order } = payloadOf(recognition);
|
|
50
|
+
return { kind: "coordinates", recognized: recognition.kind, latitude, longitude, order };
|
|
51
|
+
}
|
|
52
|
+
function noPosition(recognition) {
|
|
53
|
+
return { kind: "not_a_point", recognized: recognition.kind, reason: "names_no_position" };
|
|
54
|
+
}
|
|
55
|
+
function wofID(recognition) {
|
|
56
|
+
return { kind: "wof", recognized: recognition.kind, id: payloadOf(recognition).id };
|
|
57
|
+
}
|
|
58
|
+
function h3Cell(recognition) {
|
|
59
|
+
return { kind: "h3", recognized: recognition.kind, cell: payloadOf(recognition).cell.toLowerCase() };
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* One handler per kind.
|
|
63
|
+
*
|
|
64
|
+
* A new kind in any composed family fails this object's `satisfies` clause.
|
|
65
|
+
*
|
|
66
|
+
* The second clause fixes each handler's return type.
|
|
67
|
+
* `HandlerMap` leaves it open.
|
|
68
|
+
*/
|
|
69
|
+
const handlers = {
|
|
70
|
+
"coordinate.decimal_pair": coordinatePair,
|
|
71
|
+
"coordinate.decimal_pair_spaced": coordinatePair,
|
|
72
|
+
"coordinate.dms_pair": coordinatePair,
|
|
73
|
+
"coordinate.dms_pair_spaced": coordinatePair,
|
|
74
|
+
"coordinate.labeled_pair": coordinatePair,
|
|
75
|
+
"coordinate.maps_segment": coordinatePair,
|
|
76
|
+
// RFC 5870 fixes the order as latitude, longitude, altitude, and the payload has no order of its own.
|
|
77
|
+
"coordinate.geo_uri": (recognition) => {
|
|
78
|
+
const { latitude, longitude } = payloadOf(recognition);
|
|
79
|
+
return { kind: "coordinates", recognized: recognition.kind, latitude, longitude, order: "lat_lon" };
|
|
80
|
+
},
|
|
81
|
+
"plus_code.token": (recognition) => {
|
|
82
|
+
const { full_code, short_code } = payloadOf(recognition);
|
|
83
|
+
if (full_code != null)
|
|
84
|
+
return { kind: "plus_code", recognized: recognition.kind, full: true, code: full_code };
|
|
85
|
+
if (short_code != null)
|
|
86
|
+
return { kind: "plus_code", recognized: recognition.kind, full: false, code: short_code };
|
|
87
|
+
// The validator fills exactly one of the two fields, so a validated payload with neither is a defect in the engine.
|
|
88
|
+
throw new RangeError(`${recognition.kind} validated with neither a full code nor a short code`);
|
|
89
|
+
},
|
|
90
|
+
// The validator accepts the all-digit form.
|
|
91
|
+
// A phone number is written the same way.
|
|
92
|
+
// The trust rule decides.
|
|
93
|
+
"digipin.display": (recognition) => isDeterministicSpatial(recognition, recognition.text)
|
|
94
|
+
? { kind: "digipin", recognized: recognition.kind, code: payloadOf(recognition).code }
|
|
95
|
+
: { kind: "not_a_point", recognized: recognition.kind, reason: "digit_group" },
|
|
96
|
+
// Ten characters from `2` to `9` and `C F J K L M P T` are also a phone number, a count or a postcode.
|
|
97
|
+
"digipin.compact": (recognition) => ({
|
|
98
|
+
kind: "not_a_point",
|
|
99
|
+
recognized: recognition.kind,
|
|
100
|
+
reason: "ambiguous_without_prefix",
|
|
101
|
+
}),
|
|
102
|
+
// A GeoJSON `Point` is the point.
|
|
103
|
+
// Every other GeoJSON type is a document with no single position.
|
|
104
|
+
"geojson.object": (recognition) => {
|
|
105
|
+
const { type, latitude, longitude } = payloadOf(recognition);
|
|
106
|
+
if (type === "Point" && latitude != null && longitude != null) {
|
|
107
|
+
return { kind: "geojson_point", recognized: recognition.kind, latitude, longitude };
|
|
108
|
+
}
|
|
109
|
+
return noPosition(recognition);
|
|
110
|
+
},
|
|
111
|
+
// A Census GEOID is a run of digits, and the state code is the only part the validator can check.
|
|
112
|
+
"census.geoid_block": noPosition,
|
|
113
|
+
"census.geoid_block_group": noPosition,
|
|
114
|
+
"census.geoid_county": noPosition,
|
|
115
|
+
"census.geoid_state": noPosition,
|
|
116
|
+
"census.geoid_tract": noPosition,
|
|
117
|
+
"gnis.reference": noPosition,
|
|
118
|
+
"gnis.summary_url": noPosition,
|
|
119
|
+
"geohash.prefixed": (recognition) => ({
|
|
120
|
+
kind: "geohash",
|
|
121
|
+
recognized: recognition.kind,
|
|
122
|
+
hash: payloadOf(recognition).hash.toLowerCase(),
|
|
123
|
+
}),
|
|
124
|
+
// A bare H3 cell is read as a point here: the map's copy menu writes one,
|
|
125
|
+
// and a search field that reads back what the map copied is the contract.
|
|
126
|
+
// `isDeterministicIdentifier` withholds a bare cell from an address parse,
|
|
127
|
+
// because 15 hexadecimal digits are also a count.
|
|
128
|
+
"h3.cell": h3Cell,
|
|
129
|
+
"h3.prefixed_cell": h3Cell,
|
|
130
|
+
"wof.reference": wofID,
|
|
131
|
+
"wof.spelunker_url": wofID,
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* Reads a trimmed text as a point, or as a recognized shape that isn't a point query.
|
|
135
|
+
*
|
|
136
|
+
* Returns `null` when no recognition of the three families is validated and covers the whole text.
|
|
137
|
+
* Every address is such a text.
|
|
138
|
+
*
|
|
139
|
+
* A coordinate out of range in both axis orders is a rejected recognition,
|
|
140
|
+
* so it reads as `null`, never clamped.
|
|
141
|
+
*
|
|
142
|
+
* @param text The text the caller already trimmed, because the grammars admit no outer white space.
|
|
143
|
+
*/
|
|
144
|
+
export function recognizePointQuery(text) {
|
|
145
|
+
let notAPoint = null;
|
|
146
|
+
for (const recognition of recognizer.recognize(text).recognitions) {
|
|
147
|
+
if (recognition.validation.status !== "validated" || recognition.start !== 0 || recognition.end !== text.length) {
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
const handler = handlers[recognition.kind];
|
|
151
|
+
const reading = handler(recognition);
|
|
152
|
+
// Two shapes may cover one text, such as a Census GEOID and an H3 cell.
|
|
153
|
+
// The point wins.
|
|
154
|
+
if (reading.kind !== "not_a_point")
|
|
155
|
+
return reading;
|
|
156
|
+
notAPoint ??= reading;
|
|
157
|
+
}
|
|
158
|
+
return notAPoint;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Reads a trimmed text as a point, or `null` when it is an address or a recognized shape with no position.
|
|
162
|
+
*/
|
|
163
|
+
export function pointFromText(text) {
|
|
164
|
+
const reading = recognizePointQuery(text);
|
|
165
|
+
return reading && reading.kind !== "not_a_point" ? reading : null;
|
|
166
|
+
}
|
|
167
|
+
//# sourceMappingURL=reading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reading.js","sourceRoot":"","sources":["../../lib/point/reading.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EACN,gBAAgB,GAKhB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAA;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAGvD;;GAEG;AACH,MAAM,QAAQ,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAU,CAAA;AAO7D,MAAM,UAAU,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAA;AA4G7C;;;;GAIG;AACH,SAAS,SAAS,CAAU,WAK3B;IACA,MAAM,EAAE,UAAU,EAAE,GAAG,WAAW,CAAA;IAElC,IAAI,UAAU,CAAC,MAAM,KAAK,WAAW,EAAE,CAAC;QACvC,MAAM,IAAI,UAAU,CAAC,GAAG,WAAW,CAAC,IAAI,wDAAwD,CAAC,CAAA;IAClG,CAAC;IAED,OAAO,UAAU,CAAC,OAAO,CAAA;AAC1B,CAAC;AAQD,SAAS,cAAc,CAAC,WAA6D;IACpF,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,WAAW,CAAC,CAAA;IAE7D,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,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GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;QAEpC,wEAAwE;QACxE,kBAAkB;QAClB,IAAI,OAAO,CAAC,IAAI,KAAK,aAAa;YAAE,OAAO,OAAO,CAAA;QAElD,SAAS,KAAK,OAAO,CAAA;IACtB,CAAC;IAED,OAAO,SAAS,CAAA;AACjB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,IAAY;IACzC,MAAM,OAAO,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAA;IAEzC,OAAO,OAAO,IAAI,OAAO,CAAC,IAAI,KAAK,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAA;AAClE,CAAC"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A coordinate pair as text, latitude first, in the form `pointFromText` reads back.
|
|
3
|
+
*
|
|
4
|
+
* Six decimals place a point within about 11 cm.
|
|
5
|
+
*/
|
|
6
|
+
export declare function coordinatePairText(lat: number, lon: number, decimals?: number): string;
|
|
7
|
+
/**
|
|
8
|
+
* Labels a recognized shape in a result panel and in a sentence.
|
|
9
|
+
*/
|
|
10
|
+
export interface PointQueryDescription {
|
|
11
|
+
/**
|
|
12
|
+
* The name a result is shown under, such as the tag column of a parse.
|
|
13
|
+
*/
|
|
14
|
+
readonly label: string;
|
|
15
|
+
/**
|
|
16
|
+
* The same name as a noun phrase with its article: "this is a plus code".
|
|
17
|
+
*/
|
|
18
|
+
readonly phrase: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The description of every kind, so a new kind in any composed family fails the build until it has one.
|
|
22
|
+
*/
|
|
23
|
+
export declare const POINT_QUERY_DESCRIPTIONS: {
|
|
24
|
+
"coordinate.decimal_pair": {
|
|
25
|
+
readonly label: "coordinates";
|
|
26
|
+
readonly phrase: "a coordinate pair";
|
|
27
|
+
};
|
|
28
|
+
"coordinate.decimal_pair_spaced": {
|
|
29
|
+
readonly label: "coordinates";
|
|
30
|
+
readonly phrase: "a coordinate pair";
|
|
31
|
+
};
|
|
32
|
+
"coordinate.dms_pair": {
|
|
33
|
+
readonly label: "coordinates";
|
|
34
|
+
readonly phrase: "a coordinate pair";
|
|
35
|
+
};
|
|
36
|
+
"coordinate.dms_pair_spaced": {
|
|
37
|
+
readonly label: "coordinates";
|
|
38
|
+
readonly phrase: "a coordinate pair";
|
|
39
|
+
};
|
|
40
|
+
"coordinate.geo_uri": {
|
|
41
|
+
readonly label: "coordinates";
|
|
42
|
+
readonly phrase: "a coordinate pair";
|
|
43
|
+
};
|
|
44
|
+
"coordinate.labeled_pair": {
|
|
45
|
+
readonly label: "coordinates";
|
|
46
|
+
readonly phrase: "a coordinate pair";
|
|
47
|
+
};
|
|
48
|
+
"coordinate.maps_segment": {
|
|
49
|
+
readonly label: "coordinates";
|
|
50
|
+
readonly phrase: "a coordinate pair";
|
|
51
|
+
};
|
|
52
|
+
"plus_code.token": {
|
|
53
|
+
label: string;
|
|
54
|
+
phrase: string;
|
|
55
|
+
};
|
|
56
|
+
"digipin.compact": {
|
|
57
|
+
label: string;
|
|
58
|
+
phrase: string;
|
|
59
|
+
};
|
|
60
|
+
"digipin.display": {
|
|
61
|
+
label: string;
|
|
62
|
+
phrase: string;
|
|
63
|
+
};
|
|
64
|
+
"geojson.object": {
|
|
65
|
+
label: string;
|
|
66
|
+
phrase: string;
|
|
67
|
+
};
|
|
68
|
+
"census.geoid_block": {
|
|
69
|
+
readonly label: "Census GEOID";
|
|
70
|
+
readonly phrase: "a Census GEOID";
|
|
71
|
+
};
|
|
72
|
+
"census.geoid_block_group": {
|
|
73
|
+
readonly label: "Census GEOID";
|
|
74
|
+
readonly phrase: "a Census GEOID";
|
|
75
|
+
};
|
|
76
|
+
"census.geoid_county": {
|
|
77
|
+
readonly label: "Census GEOID";
|
|
78
|
+
readonly phrase: "a Census GEOID";
|
|
79
|
+
};
|
|
80
|
+
"census.geoid_state": {
|
|
81
|
+
readonly label: "Census GEOID";
|
|
82
|
+
readonly phrase: "a Census GEOID";
|
|
83
|
+
};
|
|
84
|
+
"census.geoid_tract": {
|
|
85
|
+
readonly label: "Census GEOID";
|
|
86
|
+
readonly phrase: "a Census GEOID";
|
|
87
|
+
};
|
|
88
|
+
"geohash.prefixed": {
|
|
89
|
+
label: string;
|
|
90
|
+
phrase: string;
|
|
91
|
+
};
|
|
92
|
+
"gnis.reference": {
|
|
93
|
+
readonly label: "GNIS id";
|
|
94
|
+
readonly phrase: "a GNIS feature id";
|
|
95
|
+
};
|
|
96
|
+
"gnis.summary_url": {
|
|
97
|
+
readonly label: "GNIS id";
|
|
98
|
+
readonly phrase: "a GNIS feature id";
|
|
99
|
+
};
|
|
100
|
+
"h3.cell": {
|
|
101
|
+
readonly label: "H3 cell";
|
|
102
|
+
readonly phrase: "an H3 cell";
|
|
103
|
+
};
|
|
104
|
+
"h3.prefixed_cell": {
|
|
105
|
+
readonly label: "H3 cell";
|
|
106
|
+
readonly phrase: "an H3 cell";
|
|
107
|
+
};
|
|
108
|
+
"wof.reference": {
|
|
109
|
+
readonly label: "Who's On First id";
|
|
110
|
+
readonly phrase: "a Who's On First id";
|
|
111
|
+
};
|
|
112
|
+
"wof.spelunker_url": {
|
|
113
|
+
readonly label: "Who's On First id";
|
|
114
|
+
readonly phrase: "a Who's On First id";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../lib/point/text.ts"],"names":[],"mappings":"AAaA;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,SAAI,GAAG,MAAM,CAEjF;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACvB;AAQD;;GAEG;AACH,eAAO,MAAM,wBAAwB;;wBATJ,aAAa;yBAAU,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiBrD,KAAK;QAAe,MAAM;;;QAC1B,KAAK;QAAa,MAAM;;;QACxB,KAAK;QAAa,MAAM;;;QACzB,KAAK;QAAa,MAAM;;;wBAnBf,cAAc;yBAAU,gBAAgB;;;;;;;;;;;;;;;;;;;QAyB/C,KAAK;QAAa,MAAM;;;wBAxBtB,SAAS;yBAAU,mBAAmB;;;;;;;wBACtC,SAAS;yBAAU,YAAY;;;;;;;wBAChC,mBAAmB;yBAAU,qBAAqB;;;;;;CA6BP,CAAA"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
|
|
2
|
+
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
|
|
3
|
+
/**
|
|
4
|
+
* A coordinate pair as text, latitude first, in the form `pointFromText` reads back.
|
|
5
|
+
*
|
|
6
|
+
* Six decimals place a point within about 11 cm.
|
|
7
|
+
*/
|
|
8
|
+
export function coordinatePairText(lat, lon, decimals = 6) {
|
|
9
|
+
return `${lat.toFixed(decimals)}, ${lon.toFixed(decimals)}`;
|
|
10
|
+
}
|
|
11
|
+
const COORDINATE_PAIR = { label: "coordinates", phrase: "a coordinate pair" };
|
|
12
|
+
const CENSUS_GEOID = { label: "Census GEOID", phrase: "a Census GEOID" };
|
|
13
|
+
const GNIS_ID = { label: "GNIS id", phrase: "a GNIS feature id" };
|
|
14
|
+
const H3_CELL = { label: "H3 cell", phrase: "an H3 cell" };
|
|
15
|
+
const WOF_ID = { label: "Who's On First id", phrase: "a Who's On First id" };
|
|
16
|
+
/**
|
|
17
|
+
* The description of every kind, so a new kind in any composed family fails the build until it has one.
|
|
18
|
+
*/
|
|
19
|
+
export const POINT_QUERY_DESCRIPTIONS = {
|
|
20
|
+
"coordinate.decimal_pair": COORDINATE_PAIR,
|
|
21
|
+
"coordinate.decimal_pair_spaced": COORDINATE_PAIR,
|
|
22
|
+
"coordinate.dms_pair": COORDINATE_PAIR,
|
|
23
|
+
"coordinate.dms_pair_spaced": COORDINATE_PAIR,
|
|
24
|
+
"coordinate.geo_uri": COORDINATE_PAIR,
|
|
25
|
+
"coordinate.labeled_pair": COORDINATE_PAIR,
|
|
26
|
+
"coordinate.maps_segment": COORDINATE_PAIR,
|
|
27
|
+
"plus_code.token": { label: "plus code", phrase: "a plus code" },
|
|
28
|
+
"digipin.compact": { label: "DIGIPIN", phrase: "a DIGIPIN" },
|
|
29
|
+
"digipin.display": { label: "DIGIPIN", phrase: "a DIGIPIN" },
|
|
30
|
+
"geojson.object": { label: "GeoJSON", phrase: "a GeoJSON object" },
|
|
31
|
+
"census.geoid_block": CENSUS_GEOID,
|
|
32
|
+
"census.geoid_block_group": CENSUS_GEOID,
|
|
33
|
+
"census.geoid_county": CENSUS_GEOID,
|
|
34
|
+
"census.geoid_state": CENSUS_GEOID,
|
|
35
|
+
"census.geoid_tract": CENSUS_GEOID,
|
|
36
|
+
"geohash.prefixed": { label: "geohash", phrase: "a geohash" },
|
|
37
|
+
"gnis.reference": GNIS_ID,
|
|
38
|
+
"gnis.summary_url": GNIS_ID,
|
|
39
|
+
"h3.cell": H3_CELL,
|
|
40
|
+
"h3.prefixed_cell": H3_CELL,
|
|
41
|
+
"wof.reference": WOF_ID,
|
|
42
|
+
"wof.spelunker_url": WOF_ID,
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=text.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../lib/point/text.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAYlE;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,GAAW,EAAE,QAAQ,GAAG,CAAC;IACxE,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,Q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AAS,EAAE,MAAM,EAAE,WAAW,EAAE;IAC7D,gBAAgB,EAAE,OAAO;IACzB,kBAAkB,EAAE,OAAO;IAC3B,SAAS,EAAE,OAAO;IAClB,kBAAkB,EAAE,OAAO;IAC3B,eAAe,EAAE,MAAM;IACvB,mBAAmB,EAAE,MAAM;CACuC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"7.0.2","root":["../lib/bbox.test.ts","../lib/distance.test.ts","../lib/open-location-code.test.ts","../lib/osgb36.test.ts","../lib/point-query.test.ts","../lib/position.test.ts","../lib/well-known-text.test.ts","../lib/coordinate/coordinate-formats.test.ts","../lib/gb/codepoint.test.ts","../lib/geometries/point.test.ts","../lib/geometries/polygon.test.ts","../lib/geometries/round.test.ts","../lib/geometries/simplify.test.ts","../lib/geometries/point/distance.test.ts","../lib/google/place-id.test.ts","../lib/h3/cell.test.ts","../lib/h3/expand-short-cell-int.test.ts"],"packageJsons":["../../../node_modules/@sister.software/h3/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/deep-eql/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@vitest/browser-playwright/package.json","../../../node_modules/@vitest/coverage-v8/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/assertion-error/package.json","../../../node_modules/buffer/package.json","../../../node_modules/chai/package.json","../../../node_modules/deep-eql/package.json","../../../node_modules/esbuild/package.json","../../../node_modules/events/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/jiti/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/path-ts/package.json","../../../node_modules/punycode/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/tagged-tag/package.json","../../../node_modules/terser/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/type-fest/package.json","../../../node_modules/undici-types/package.json","../../../node_modules/vite/package.json","../../../node_modules/vitest/package.json","../../../node_modules/wkx/package.json","../../../node_modules/yaml/package.json","../../annotations/package.json","../../core/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@mailwoman/core/fs/temporary/package.json","../../../node_modules/@mailwoman/core/fs/writers/package.json","../../../node_modules/@opentelemetry/api/package.json","../../../node_modules/@sister.software/h3/out/lib/api/package.json","../../../node_modules/@sister.software/h3/out/lib/package.json","../../../node_modules/@sister.software/h3/out/lib/runtime/package.json","../../../node_modules/@sister.software/h3/out/package.json","../../../node_modules/@types/assert/package.json","../../../node_modules/@types/assert/strict/package.json","../../../node_modules/@types/async_hooks/package.json","../../../node_modules/@types/child_process/package.json","../../../node_modules/@types/cluster/package.json","../../../node_modules/@types/console/package.json","../../../node_modules/@types/constants/package.json","../../../node_modules/@types/crypto/package.json","../../../node_modules/@types/dgram/package.json","../../../node_modules/@types/diagnostics_channel/package.json","../../../node_modules/@types/dns/package.json","../../../node_modules/@types/dns/promises/package.json","../../../node_modules/@types/domain/package.json","../../../node_modules/@types/events/package.json","../../../node_modules/@types/fs/package.json","../../../node_modules/@types/fs/promises/package.json","../../../node_modules/@types/http/package.json","../../../node_modules/@types/http2/package.json","../../../node_modules/@types/https/package.json","../../../node_modules/@types/inspector/package.json","../../../node_modules/@types/inspector/promises/package.json","../../../node_modules/@types/module/package.json","../../../node_modules/@types/net/package.json","../../../node_modules/@types/node/assert/package.json","../../../node_modules/@types/node/dns/package.json","../../../node_modules/@types/node/fs/package.json","../../../node_modules/@types/node/inspector/package.json","../../../node_modules/@types/node/path/package.json","../../../node_modules/@types/node/readline/package.json","../../../node_modules/@types/node/stream/package.json","../../../node_modules/@types/node/test/package.json","../../../node_modules/@types/node/timers/package.json","../../../node_modules/@types/node/util/package.json","../../../node_modules/@types/node/web-globals/package.json","../../../node_modules/@types/node/zlib/package.json","../../../node_modules/@types/os/package.json","../../../node_modules/@types/path/package.json","../../../node_modules/@types/path/posix/package.json","../../../node_modules/@types/path/win32/package.json","../../../node_modules/@types/perf_hooks/package.json","../../../node_modules/@types/process/package.json","../../../node_modules/@types/punycode/package.json","../../../node_modules/@types/querystring/package.json","../../../node_modules/@types/readline/package.json","../../../node_modules/@types/readline/promises/package.json","../../../node_modules/@types/repl/package.json","../../../node_modules/@types/stream/consumers/package.json","../../../node_modules/@types/stream/iter/package.json","../../../node_modules/@types/stream/package.json","../../../node_modules/@types/stream/promises/package.json","../../../node_modules/@types/stream/web/package.json","../../../node_modules/@types/string_decoder/package.json","../../../node_modules/@types/timers/package.json","../../../node_modules/@types/timers/promises/package.json","../../../node_modules/@types/tls/package.json","../../../node_modules/@types/trace_events/package.json","../../../node_modules/@types/tty/package.json","../../../node_modules/@types/url/package.json","../../../node_modules/@types/util/package.json","../../../node_modules/@types/util/types/package.json","../../../node_modules/@types/v8/package.json","../../../node_modules/@types/vm/package.json","../../../node_modules/@types/wasi/package.json","../../../node_modules/@types/worker_threads/package.json","../../../node_modules/@types/zlib/package.json","../../../node_modules/@vitejs/devtools/package.json","../../../node_modules/@vitest/browser-preview/package.json","../../../node_modules/@vitest/browser-webdriverio/package.json","../../../node_modules/@vitest/coverage-istanbul/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/assert/package.json","../../../node_modules/assert/strict/package.json","../../../node_modules/async_hooks/package.json","../../../node_modules/child_process/package.json","../../../node_modules/cluster/package.json","../../../node_modules/console/package.json","../../../node_modules/constants/package.json","../../../node_modules/crypto/package.json","../../../node_modules/dgram/package.json","../../../node_modules/diagnostics_channel/package.json","../../../node_modules/dns/package.json","../../../node_modules/dns/promises/package.json","../../../node_modules/domain/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/fs/package.json","../../../node_modules/fs/promises/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/http/package.json","../../../node_modules/http2/package.json","../../../node_modules/https/package.json","../../../node_modules/inspector/package.json","../../../node_modules/inspector/promises/package.json","../../../node_modules/less/package.json","../../../node_modules/module/package.json","../../../node_modules/msw/package.json","../../../node_modules/net/package.json","../../../node_modules/os/package.json","../../../node_modules/path-ts/out/lib/package.json","../../../node_modules/path-ts/out/package.json","../../../node_modules/path/package.json","../../../node_modules/path/posix/package.json","../../../node_modules/path/win32/package.json","../../../node_modules/perf_hooks/package.json","../../../node_modules/process/package.json","../../../node_modules/querystring/package.json","../../../node_modules/readline/package.json","../../../node_modules/readline/promises/package.json","../../../node_modules/repl/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/stream/consumers/package.json","../../../node_modules/stream/iter/package.json","../../../node_modules/stream/package.json","../../../node_modules/stream/promises/package.json","../../../node_modules/stream/web/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/timers/package.json","../../../node_modules/timers/promises/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tls/package.json","../../../node_modules/trace_events/package.json","../../../node_modules/tsx/package.json","../../../node_modules/tty/package.json","../../../node_modules/type-fest/source/internal/package.json","../../../node_modules/type-fest/source/package.json","../../../node_modules/url/package.json","../../../node_modules/util/package.json","../../../node_modules/util/types/package.json","../../../node_modules/v8/package.json","../../../node_modules/vite/dist/node/chunks/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vite/module-runner/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vm/package.json","../../../node_modules/wasi/package.json","../../../node_modules/wkx/lib/package.json","../../../node_modules/worker_threads/package.json","../../../node_modules/zlib/package.json"]}
|
|
1
|
+
{"version":"7.0.2","root":["../lib/bbox.test.ts","../lib/digipin.test.ts","../lib/distance.test.ts","../lib/open-location-code.test.ts","../lib/osgb36.test.ts","../lib/position.test.ts","../lib/well-known-text.test.ts","../lib/coordinate/coordinate-formats.test.ts","../lib/gb/codepoint.test.ts","../lib/geometries/point.test.ts","../lib/geometries/polygon.test.ts","../lib/geometries/round.test.ts","../lib/geometries/simplify.test.ts","../lib/geometries/point/distance.test.ts","../lib/google/place-id.test.ts","../lib/h3/cell.test.ts","../lib/h3/expand-short-cell-int.test.ts","../lib/point/reading.test.ts"],"packageJsons":["../../../node_modules/@sister.software/h3/package.json","../../../node_modules/@types/chai/package.json","../../../node_modules/@types/deep-eql/package.json","../../../node_modules/@types/node/package.json","../../../node_modules/@vitest/browser-playwright/package.json","../../../node_modules/@vitest/coverage-v8/package.json","../../../node_modules/@vitest/mocker/package.json","../../../node_modules/@vitest/ui/package.json","../../../node_modules/assertion-error/package.json","../../../node_modules/buffer/package.json","../../../node_modules/chai/package.json","../../../node_modules/deep-eql/package.json","../../../node_modules/esbuild/package.json","../../../node_modules/events/package.json","../../../node_modules/expect-type/package.json","../../../node_modules/jiti/package.json","../../../node_modules/jsdom/package.json","../../../node_modules/path-ts/package.json","../../../node_modules/punycode/package.json","../../../node_modules/string_decoder/package.json","../../../node_modules/tagged-tag/package.json","../../../node_modules/terser/package.json","../../../node_modules/tinybench/package.json","../../../node_modules/type-fest/package.json","../../../node_modules/undici-types/package.json","../../../node_modules/vite/package.json","../../../node_modules/vitest/package.json","../../../node_modules/wkx/package.json","../../../node_modules/yaml/package.json","../../annotations/package.json","../../core/package.json","../../recognizer/package.json","../../registry/package.json","../package.json"],"missingPackageJsons":["../../../node_modules/@edge-runtime/vm/package.json","../../../node_modules/@mailwoman/core/fs/readers/package.json","../../../node_modules/@mailwoman/core/fs/temporary/package.json","../../../node_modules/@mailwoman/core/fs/writers/package.json","../../../node_modules/@mailwoman/core/json/package.json","../../../node_modules/@mailwoman/core/paths/package.json","../../../node_modules/@mailwoman/recognizer/coordinates.generated/package.json","../../../node_modules/@mailwoman/recognizer/coordinates/package.json","../../../node_modules/@mailwoman/recognizer/identifiers.generated/package.json","../../../node_modules/@mailwoman/recognizer/identifiers/package.json","../../../node_modules/@mailwoman/recognizer/spatial.generated/package.json","../../../node_modules/@mailwoman/recognizer/spatial/package.json","../../../node_modules/@mailwoman/recognizer/types/package.json","../../../node_modules/@mailwoman/registry/types/package.json","../../../node_modules/@opentelemetry/api/package.json","../../../node_modules/@sister.software/h3/out/lib/api/package.json","../../../node_modules/@sister.software/h3/out/lib/package.json","../../../node_modules/@sister.software/h3/out/lib/runtime/package.json","../../../node_modules/@sister.software/h3/out/package.json","../../../node_modules/@types/assert/package.json","../../../node_modules/@types/assert/strict/package.json","../../../node_modules/@types/async_hooks/package.json","../../../node_modules/@types/child_process/package.json","../../../node_modules/@types/cluster/package.json","../../../node_modules/@types/console/package.json","../../../node_modules/@types/constants/package.json","../../../node_modules/@types/crypto/package.json","../../../node_modules/@types/dgram/package.json","../../../node_modules/@types/diagnostics_channel/package.json","../../../node_modules/@types/dns/package.json","../../../node_modules/@types/dns/promises/package.json","../../../node_modules/@types/domain/package.json","../../../node_modules/@types/events/package.json","../../../node_modules/@types/fs/package.json","../../../node_modules/@types/fs/promises/package.json","../../../node_modules/@types/http/package.json","../../../node_modules/@types/http2/package.json","../../../node_modules/@types/https/package.json","../../../node_modules/@types/inspector/package.json","../../../node_modules/@types/inspector/promises/package.json","../../../node_modules/@types/module/package.json","../../../node_modules/@types/net/package.json","../../../node_modules/@types/node/assert/package.json","../../../node_modules/@types/node/dns/package.json","../../../node_modules/@types/node/fs/package.json","../../../node_modules/@types/node/inspector/package.json","../../../node_modules/@types/node/path/package.json","../../../node_modules/@types/node/readline/package.json","../../../node_modules/@types/node/stream/package.json","../../../node_modules/@types/node/test/package.json","../../../node_modules/@types/node/timers/package.json","../../../node_modules/@types/node/util/package.json","../../../node_modules/@types/node/web-globals/package.json","../../../node_modules/@types/node/zlib/package.json","../../../node_modules/@types/os/package.json","../../../node_modules/@types/path/package.json","../../../node_modules/@types/path/posix/package.json","../../../node_modules/@types/path/win32/package.json","../../../node_modules/@types/perf_hooks/package.json","../../../node_modules/@types/process/package.json","../../../node_modules/@types/punycode/package.json","../../../node_modules/@types/querystring/package.json","../../../node_modules/@types/readline/package.json","../../../node_modules/@types/readline/promises/package.json","../../../node_modules/@types/repl/package.json","../../../node_modules/@types/stream/consumers/package.json","../../../node_modules/@types/stream/iter/package.json","../../../node_modules/@types/stream/package.json","../../../node_modules/@types/stream/promises/package.json","../../../node_modules/@types/stream/web/package.json","../../../node_modules/@types/string_decoder/package.json","../../../node_modules/@types/timers/package.json","../../../node_modules/@types/timers/promises/package.json","../../../node_modules/@types/tls/package.json","../../../node_modules/@types/trace_events/package.json","../../../node_modules/@types/tty/package.json","../../../node_modules/@types/url/package.json","../../../node_modules/@types/util/package.json","../../../node_modules/@types/util/types/package.json","../../../node_modules/@types/v8/package.json","../../../node_modules/@types/vm/package.json","../../../node_modules/@types/wasi/package.json","../../../node_modules/@types/worker_threads/package.json","../../../node_modules/@types/zlib/package.json","../../../node_modules/@vitejs/devtools/package.json","../../../node_modules/@vitest/browser-preview/package.json","../../../node_modules/@vitest/browser-webdriverio/package.json","../../../node_modules/@vitest/coverage-istanbul/package.json","../../../node_modules/@vitest/mocker/dist/package.json","../../../node_modules/assert/package.json","../../../node_modules/assert/strict/package.json","../../../node_modules/async_hooks/package.json","../../../node_modules/child_process/package.json","../../../node_modules/cluster/package.json","../../../node_modules/console/package.json","../../../node_modules/constants/package.json","../../../node_modules/crypto/package.json","../../../node_modules/dgram/package.json","../../../node_modules/diagnostics_channel/package.json","../../../node_modules/dns/package.json","../../../node_modules/dns/promises/package.json","../../../node_modules/domain/package.json","../../../node_modules/expect-type/dist/package.json","../../../node_modules/fs/package.json","../../../node_modules/fs/promises/package.json","../../../node_modules/happy-dom/package.json","../../../node_modules/http/package.json","../../../node_modules/http2/package.json","../../../node_modules/https/package.json","../../../node_modules/inspector/package.json","../../../node_modules/inspector/promises/package.json","../../../node_modules/less/package.json","../../../node_modules/module/package.json","../../../node_modules/msw/package.json","../../../node_modules/net/package.json","../../../node_modules/os/package.json","../../../node_modules/path-ts/out/lib/package.json","../../../node_modules/path-ts/out/package.json","../../../node_modules/path/package.json","../../../node_modules/path/posix/package.json","../../../node_modules/path/win32/package.json","../../../node_modules/perf_hooks/package.json","../../../node_modules/process/package.json","../../../node_modules/querystring/package.json","../../../node_modules/readline/package.json","../../../node_modules/readline/promises/package.json","../../../node_modules/repl/package.json","../../../node_modules/sass-embedded/package.json","../../../node_modules/sass/package.json","../../../node_modules/stream/consumers/package.json","../../../node_modules/stream/iter/package.json","../../../node_modules/stream/package.json","../../../node_modules/stream/promises/package.json","../../../node_modules/stream/web/package.json","../../../node_modules/stylus/package.json","../../../node_modules/sugarss/package.json","../../../node_modules/timers/package.json","../../../node_modules/timers/promises/package.json","../../../node_modules/tinybench/dist/package.json","../../../node_modules/tls/package.json","../../../node_modules/trace_events/package.json","../../../node_modules/tsx/package.json","../../../node_modules/tty/package.json","../../../node_modules/type-fest/source/internal/package.json","../../../node_modules/type-fest/source/package.json","../../../node_modules/url/package.json","../../../node_modules/util/package.json","../../../node_modules/util/types/package.json","../../../node_modules/v8/package.json","../../../node_modules/vite/dist/node/chunks/package.json","../../../node_modules/vite/dist/node/package.json","../../../node_modules/vite/dist/package.json","../../../node_modules/vite/module-runner/package.json","../../../node_modules/vite/types/package.json","../../../node_modules/vitest/dist/chunks/package.json","../../../node_modules/vitest/dist/package.json","../../../node_modules/vm/package.json","../../../node_modules/wasi/package.json","../../../node_modules/wkx/lib/package.json","../../../node_modules/worker_threads/package.json","../../../node_modules/zlib/package.json"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mailwoman/spatial",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "Spatial analysis, geocoding, and other geo-related utilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"geo",
|
|
@@ -93,8 +93,9 @@
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@mailwoman/core": "11.
|
|
97
|
-
"@mailwoman/postcode": "11.
|
|
96
|
+
"@mailwoman/core": "11.2.0",
|
|
97
|
+
"@mailwoman/postcode": "11.2.0",
|
|
98
|
+
"@mailwoman/recognizer": "11.2.0",
|
|
98
99
|
"@sister.software/h3": "^1.1.0",
|
|
99
100
|
"@types/google.maps": "^3.66.9",
|
|
100
101
|
"geo-coordinates-parser": "^1.7.4",
|
|
@@ -103,10 +104,10 @@
|
|
|
103
104
|
"wkx": "^0.5.0"
|
|
104
105
|
},
|
|
105
106
|
"devDependencies": {
|
|
106
|
-
"@mailwoman/annotations": "11.
|
|
107
|
+
"@mailwoman/annotations": "11.2.0",
|
|
107
108
|
"type-fest": "^5.10.0"
|
|
108
109
|
},
|
|
109
110
|
"engines": {
|
|
110
|
-
"node": "^24.22.
|
|
111
|
+
"node": "^24.22.3 || >=26.13.1"
|
|
111
112
|
}
|
|
112
113
|
}
|