@mailwoman/spatial 11.1.0 → 11.3.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.
Files changed (69) hide show
  1. package/README.md +2 -1
  2. package/lib/digipin.ts +282 -0
  3. package/lib/geometries/point/coordinates.ts +1 -1
  4. package/lib/geometries/point.ts +1 -1
  5. package/lib/geometries/ring-blob.ts +1 -1
  6. package/lib/geometries.ts +1 -1
  7. package/lib/h3/interior-cells.ts +5 -3
  8. package/lib/h3/polygon-cells.ts +4 -4
  9. package/lib/index.ts +2 -1
  10. package/lib/open-location-code.ts +45 -30
  11. package/lib/point/reading.ts +323 -0
  12. package/lib/point/text.ts +70 -0
  13. package/lib/polyline.ts +8 -6
  14. package/lib/position.ts +1 -1
  15. package/lib/projection/transform.ts +1 -1
  16. package/out/digipin.d.ts +94 -0
  17. package/out/digipin.d.ts.map +1 -0
  18. package/out/digipin.js +242 -0
  19. package/out/digipin.js.map +1 -0
  20. package/out/geometries/point/coordinates.js +1 -1
  21. package/out/geometries/point/coordinates.js.map +1 -1
  22. package/out/geometries/point.js +1 -1
  23. package/out/geometries/point.js.map +1 -1
  24. package/out/geometries/ring-blob.d.ts +1 -1
  25. package/out/geometries.d.ts +1 -1
  26. package/out/geometries.js +1 -1
  27. package/out/h3/interior-cells.d.ts.map +1 -1
  28. package/out/h3/interior-cells.js +5 -3
  29. package/out/h3/interior-cells.js.map +1 -1
  30. package/out/h3/polygon-cells.d.ts +3 -2
  31. package/out/h3/polygon-cells.d.ts.map +1 -1
  32. package/out/h3/polygon-cells.js +4 -4
  33. package/out/h3/polygon-cells.js.map +1 -1
  34. package/out/index.d.ts +2 -1
  35. package/out/index.d.ts.map +1 -1
  36. package/out/index.js +2 -1
  37. package/out/index.js.map +1 -1
  38. package/out/open-location-code.d.ts +24 -16
  39. package/out/open-location-code.d.ts.map +1 -1
  40. package/out/open-location-code.js +27 -27
  41. package/out/open-location-code.js.map +1 -1
  42. package/out/point/reading.d.ts +144 -0
  43. package/out/point/reading.d.ts.map +1 -0
  44. package/out/point/reading.js +167 -0
  45. package/out/point/reading.js.map +1 -0
  46. package/out/point/text.d.ts +117 -0
  47. package/out/point/text.d.ts.map +1 -0
  48. package/out/point/text.js +44 -0
  49. package/out/point/text.js.map +1 -0
  50. package/out/polyline.d.ts.map +1 -1
  51. package/out/polyline.js +8 -6
  52. package/out/polyline.js.map +1 -1
  53. package/out/position.d.ts +1 -1
  54. package/out/projection/transform.js +1 -1
  55. package/out/projection/transform.js.map +1 -1
  56. package/out/tools/ogr/stream.js +2 -2
  57. package/out/tools/ogr/stream.js.map +1 -1
  58. package/out/tools/ogr.js +3 -3
  59. package/out/tools/ogr.js.map +1 -1
  60. package/out/tools/tsconfig.tsbuildinfo +1 -1
  61. package/out/tsconfig.test.tsbuildinfo +1 -1
  62. package/package.json +6 -5
  63. package/tools/ogr/stream.ts +2 -2
  64. package/tools/ogr.ts +3 -3
  65. package/lib/point-query.ts +0 -294
  66. package/out/point-query.d.ts +0 -71
  67. package/out/point-query.d.ts.map +0 -1
  68. package/out/point-query.js +0 -194
  69. package/out/point-query.js.map +0 -1
@@ -1,194 +0,0 @@
1
- // SPDX-FileCopyrightText: Teffen Ellis and Mailwoman contributors
2
- // SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
3
- /**
4
- * @file The shapes a typed query takes when it is a point rather than an address, and the one parser for them.
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 parsePointQuery} reads the whole text as one of those shapes or
8
- * answers `null`, so a caller sends only an address to the classifier. It reads text and decodes no cell: decoding a cell
9
- * to a coordinate belongs to the module that owns the format, and the H3 reader loads a WebAssembly binary
10
- * that a text test mustn't pay for.
11
- */
12
- import { isValidLatitude, isValidLongitude } from "#coordinate/bounds";
13
- import { isFullPlusCode, isShortPlusCode } from "#open-location-code";
14
- /**
15
- * `wof:85633793`, `wof 85633793`, `whosonfirst:85633793`.
16
- */
17
- const WOF_REFERENCE = /^(?:wof|whosonfirst)[\s:]+(\d{1,16})$/iu;
18
- /**
19
- * A Spelunker place page, with or without the trailing slash.
20
- */
21
- const SPELUNKER_URL = /^https?:\/\/spelunker\.whosonfirst\.org\/id\/(\d{1,16})\/?$/iu;
22
- /**
23
- * The hexadecimal form of an H3 cell: mode 1 in the high nibble, then fourteen more digits.
24
- */
25
- const H3_CELL = /^(?:h3:)?(8[0-9a-f]{14})$/iu;
26
- /**
27
- * A geohash behind its prefix, in the base-32 alphabet that omits `a`, `i`, `l` and `o`.
28
- */
29
- const GEOHASH_REFERENCE = /^(?:geohash|gh):\s*([0-9b-hjkmnp-z]{1,12})$/iu;
30
- /**
31
- * A `geo:` URI, `geo:48.8584,2.2945` with an optional altitude and parameters.
32
- */
33
- const GEO_URI = /^geo:(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)(?:,-?\d+(?:\.\d+)?)?(?:;.*)?$/iu;
34
- /**
35
- * Google Maps' path segment, `@48.8584,2.2945,17z`, with the zoom optional.
36
- */
37
- const MAPS_SEGMENT = /^@(-?\d+(?:\.\d+)?),(-?\d+(?:\.\d+)?)(?:,[\d.]+z)?$/iu;
38
- /**
39
- * A labeled pair in either order: `lat 48.85 lon 2.29`, `lng=2.29, lat=48.85`.
40
- */
41
- const LABELED_PAIR = /^(lat(?:itude)?|lon(?:gitude)?|lng)\s*[:=]?\s*(-?\d+(?:\.\d+)?)\s*[,;\s]\s*(lat(?:itude)?|lon(?:gitude)?|lng)\s*[:=]?\s*(-?\d+(?:\.\d+)?)$/iu;
42
- /**
43
- * One angle: a signed decimal, or degrees with optional minutes and seconds,
44
- * each with its mark, and an optional hemisphere letter after it.
45
- */
46
- const ANGLE = /^([+-])?\s*(\d+(?:\.\d+)?)\s*(?:°|º|d\b)?\s*(?:(\d+(?:\.\d+)?)\s*(?:'|′|’|m\b)\s*)?(?:(\d+(?:\.\d+)?)\s*(?:"|″|”|''|s\b)\s*)?([NSEW])?$/iu;
47
- /**
48
- * A pair of angles is split at the comma or semicolon, or after the first hemisphere letter,
49
- * or between two decimal numbers at the whitespace between them.
50
- */
51
- const PAIR_AT_HEMISPHERE = /^(.+?[NSEW])\s+(.+)$/iu;
52
- const PAIR_AT_SPACE = /^(\S+)\s+(\S+)$/u;
53
- function parseAngle(text) {
54
- const match = ANGLE.exec(text.trim());
55
- if (!match)
56
- return null;
57
- const [, sign, degrees, minutes = "0", seconds = "0", letter] = match;
58
- const magnitude = Number(degrees) + Number(minutes) / 60 + Number(seconds) / 3600;
59
- if (!Number.isFinite(magnitude))
60
- return null;
61
- const hemisphere = letter ? letter.toUpperCase() : null;
62
- const negative = sign === "-" || hemisphere === "S" || hemisphere === "W";
63
- return { degrees: negative ? -magnitude : magnitude, hemisphere };
64
- }
65
- /**
66
- * A pair of angles as the point they name, or `null` when the pair is out of range in both orders.
67
- *
68
- * Hemisphere letters decide the axis.
69
- * Without them the first number is the latitude, as in a Google Maps link,
70
- * unless only the other order is in range.
71
- */
72
- function pairToPoint(first, second) {
73
- const latLetters = new Set(["N", "S"]);
74
- const lonLetters = new Set(["E", "W"]);
75
- if (first.hemisphere && second.hemisphere) {
76
- if (latLetters.has(first.hemisphere) && lonLetters.has(second.hemisphere)) {
77
- return coordinates(first.degrees, second.degrees, "lat_lon");
78
- }
79
- if (lonLetters.has(first.hemisphere) && latLetters.has(second.hemisphere)) {
80
- return coordinates(second.degrees, first.degrees, "lon_lat");
81
- }
82
- return null;
83
- }
84
- if (first.hemisphere) {
85
- return latLetters.has(first.hemisphere)
86
- ? coordinates(first.degrees, second.degrees, "lat_lon")
87
- : coordinates(second.degrees, first.degrees, "lon_lat");
88
- }
89
- if (second.hemisphere) {
90
- return lonLetters.has(second.hemisphere)
91
- ? coordinates(first.degrees, second.degrees, "lat_lon")
92
- : coordinates(second.degrees, first.degrees, "lon_lat");
93
- }
94
- return coordinates(first.degrees, second.degrees, "lat_lon") ?? coordinates(second.degrees, first.degrees, "lon_lat");
95
- }
96
- function coordinates(lat, lon, order) {
97
- if (!isValidLatitude(lat) || !isValidLongitude(lon))
98
- return null;
99
- return { kind: "coordinates", lat, lon, order };
100
- }
101
- /**
102
- * Whether a bare pair of numbers reads as a coordinate rather than two counts.
103
- *
104
- * `12 34` reads as a house number beside a postcode and as a position, so a bare pair
105
- * needs a comma, a decimal point, a degree mark or a hemisphere letter.
106
- */
107
- const COORDINATE_MARK = /[,;.°º'′"″NSEW]/iu;
108
- function parseCoordinatePair(text) {
109
- if (!COORDINATE_MARK.test(text))
110
- return null;
111
- const halves = (/[,;]/u.test(text) ? text.split(/[,;]/u, 2) : null) ??
112
- PAIR_AT_HEMISPHERE.exec(text)?.slice(1, 3) ??
113
- PAIR_AT_SPACE.exec(text)?.slice(1, 3);
114
- if (!halves || halves.length !== 2)
115
- return null;
116
- const first = parseAngle(halves[0]);
117
- const second = parseAngle(halves[1]);
118
- if (!first || !second)
119
- return null;
120
- return pairToPoint(first, second);
121
- }
122
- /**
123
- * Reads a whole query as the point it names: a coordinate pair in decimal,
124
- * degrees-minutes-seconds, `geo:` or Google Maps form, a full or short plus code,
125
- * an H3 cell, a prefixed geohash, or a Who's On First id.
126
- *
127
- * Returns `null` for text that's none of these.
128
- * Every address is such a text.
129
- *
130
- * A coordinate outside the valid range in both axis orders is also `null`, never clamped.
131
- */
132
- export function parsePointQuery(text) {
133
- const trimmed = text.trim();
134
- if (!trimmed)
135
- return null;
136
- const wof = WOF_REFERENCE.exec(trimmed) ?? SPELUNKER_URL.exec(trimmed);
137
- if (wof) {
138
- const id = Number(wof[1]);
139
- return Number.isSafeInteger(id) && id > 0 ? { kind: "wof", id } : null;
140
- }
141
- const h3 = H3_CELL.exec(trimmed);
142
- if (h3)
143
- return { kind: "h3", cell: h3[1].toLowerCase() };
144
- const geohash = GEOHASH_REFERENCE.exec(trimmed);
145
- if (geohash)
146
- return { kind: "geohash", hash: geohash[1].toLowerCase() };
147
- if (isFullPlusCode(trimmed))
148
- return { kind: "plus_code", code: trimmed.toUpperCase(), full: true };
149
- if (isShortPlusCode(trimmed))
150
- return { kind: "plus_code", code: trimmed.toUpperCase(), full: false };
151
- const uri = GEO_URI.exec(trimmed) ?? MAPS_SEGMENT.exec(trimmed);
152
- if (uri)
153
- return coordinates(Number(uri[1]), Number(uri[2]), "lat_lon");
154
- const labeled = LABELED_PAIR.exec(trimmed);
155
- if (labeled) {
156
- const [, firstLabel, firstValue, secondLabel, secondValue] = labeled;
157
- const firstIsLat = /^lat/iu.test(firstLabel);
158
- if (firstIsLat === /^lat/iu.test(secondLabel))
159
- return null;
160
- return firstIsLat
161
- ? coordinates(Number(firstValue), Number(secondValue), "lat_lon")
162
- : coordinates(Number(secondValue), Number(firstValue), "lon_lat");
163
- }
164
- return parseCoordinatePair(trimmed);
165
- }
166
- /**
167
- * A coordinate pair as text, latitude first, in the form {@link parsePointQuery} reads back.
168
- *
169
- * Six decimals place a point within about 11 cm.
170
- */
171
- export function coordinatePairText(lat, lon, decimals = 6) {
172
- return `${lat.toFixed(decimals)}, ${lon.toFixed(decimals)}`;
173
- }
174
- /**
175
- * The label a point query is shown under, such as the tag column of a parse.
176
- */
177
- export const POINT_QUERY_LABEL = {
178
- coordinates: "coordinates",
179
- plus_code: "plus code",
180
- h3: "H3 cell",
181
- geohash: "geohash",
182
- wof: "Who's On First id",
183
- };
184
- /**
185
- * The same shapes as a noun phrase with its article, for a sentence: "this is a plus code".
186
- */
187
- export const POINT_QUERY_PHRASE = {
188
- coordinates: "a coordinate pair",
189
- plus_code: "a plus code",
190
- h3: "an H3 cell",
191
- geohash: "a geohash",
192
- wof: "a Who's On First id",
193
- };
194
- //# sourceMappingURL=point-query.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"point-query.js","sourceRoot":"","sources":["../lib/point-query.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,kEAAkE;AAElE;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,oBAA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