@osmix/shared 0.0.2 → 0.0.7
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/CHANGELOG.md +33 -0
- package/README.md +49 -19
- package/dist/assert.d.ts +24 -0
- package/dist/assert.d.ts.map +1 -0
- package/dist/assert.js +28 -0
- package/dist/assert.js.map +1 -0
- package/dist/bbox-intersects.d.ts +15 -0
- package/dist/bbox-intersects.d.ts.map +1 -0
- package/dist/bbox-intersects.js +24 -0
- package/dist/bbox-intersects.js.map +1 -0
- package/dist/bytes-to-stream.d.ts +18 -0
- package/dist/bytes-to-stream.d.ts.map +1 -0
- package/dist/bytes-to-stream.js +25 -0
- package/dist/bytes-to-stream.js.map +1 -0
- package/dist/color.d.ts +4 -0
- package/dist/color.d.ts.map +1 -0
- package/dist/color.js +33 -0
- package/dist/color.js.map +1 -0
- package/dist/concat-bytes.d.ts +5 -0
- package/dist/concat-bytes.d.ts.map +1 -0
- package/dist/concat-bytes.js +14 -0
- package/dist/concat-bytes.js.map +1 -0
- package/dist/coordinates.d.ts +28 -0
- package/dist/coordinates.d.ts.map +1 -0
- package/dist/coordinates.js +38 -0
- package/dist/coordinates.js.map +1 -0
- package/dist/haversine-distance.d.ts +16 -0
- package/dist/haversine-distance.d.ts.map +1 -0
- package/dist/haversine-distance.js +26 -0
- package/dist/haversine-distance.js.map +1 -0
- package/dist/lineclip.d.ts +2 -0
- package/dist/lineclip.d.ts.map +1 -0
- package/dist/lineclip.js +3 -0
- package/dist/lineclip.js.map +1 -0
- package/dist/progress.d.ts +42 -0
- package/dist/progress.d.ts.map +1 -0
- package/dist/progress.js +53 -0
- package/dist/progress.js.map +1 -0
- package/dist/relation-kind.d.ts +69 -0
- package/dist/relation-kind.d.ts.map +1 -0
- package/dist/relation-kind.js +375 -0
- package/dist/relation-kind.js.map +1 -0
- package/dist/relation-multipolygon.d.ts +43 -0
- package/dist/relation-multipolygon.d.ts.map +1 -0
- package/dist/relation-multipolygon.js +195 -0
- package/dist/relation-multipolygon.js.map +1 -0
- package/dist/src/assert.d.ts +20 -1
- package/dist/src/assert.d.ts.map +1 -1
- package/dist/src/assert.js +20 -1
- package/dist/src/assert.js.map +1 -1
- package/dist/src/bbox-intersects.d.ts +15 -0
- package/dist/src/bbox-intersects.d.ts.map +1 -0
- package/dist/src/bbox-intersects.js +24 -0
- package/dist/src/bbox-intersects.js.map +1 -0
- package/dist/src/bytes-to-stream.d.ts +17 -1
- package/dist/src/bytes-to-stream.d.ts.map +1 -1
- package/dist/src/bytes-to-stream.js +16 -0
- package/dist/src/bytes-to-stream.js.map +1 -1
- package/dist/src/color.d.ts +4 -0
- package/dist/src/color.d.ts.map +1 -0
- package/dist/src/color.js +33 -0
- package/dist/src/color.js.map +1 -0
- package/dist/src/coordinates.d.ts +28 -0
- package/dist/src/coordinates.d.ts.map +1 -0
- package/dist/src/coordinates.js +38 -0
- package/dist/src/coordinates.js.map +1 -0
- package/dist/src/haversine-distance.d.ts +9 -1
- package/dist/src/haversine-distance.d.ts.map +1 -1
- package/dist/src/haversine-distance.js +9 -1
- package/dist/src/haversine-distance.js.map +1 -1
- package/dist/src/progress.d.ts +42 -0
- package/dist/src/progress.d.ts.map +1 -0
- package/dist/src/progress.js +53 -0
- package/dist/src/progress.js.map +1 -0
- package/dist/src/relation-kind.d.ts +69 -0
- package/dist/src/relation-kind.d.ts.map +1 -0
- package/dist/src/relation-kind.js +375 -0
- package/dist/src/relation-kind.js.map +1 -0
- package/dist/src/relation-multipolygon.d.ts +43 -0
- package/dist/src/relation-multipolygon.d.ts.map +1 -0
- package/dist/src/relation-multipolygon.js +195 -0
- package/dist/src/relation-multipolygon.js.map +1 -0
- package/dist/src/stream-to-bytes.d.ts +16 -0
- package/dist/src/stream-to-bytes.d.ts.map +1 -1
- package/dist/src/stream-to-bytes.js +16 -0
- package/dist/src/stream-to-bytes.js.map +1 -1
- package/dist/src/test/fixtures.d.ts +1 -1
- package/dist/src/test/fixtures.d.ts.map +1 -1
- package/dist/src/test/fixtures.js +16 -8
- package/dist/src/test/fixtures.js.map +1 -1
- package/dist/src/throttle.d.ts +25 -0
- package/dist/src/throttle.d.ts.map +1 -0
- package/dist/src/throttle.js +34 -0
- package/dist/src/throttle.js.map +1 -0
- package/dist/src/tile.d.ts +34 -0
- package/dist/src/tile.d.ts.map +1 -0
- package/dist/src/tile.js +72 -0
- package/dist/src/tile.js.map +1 -0
- package/dist/src/transform-bytes.d.ts +22 -0
- package/dist/src/transform-bytes.d.ts.map +1 -1
- package/dist/src/transform-bytes.js +22 -0
- package/dist/src/transform-bytes.js.map +1 -1
- package/dist/src/types.d.ts +76 -1
- package/dist/src/types.d.ts.map +1 -1
- package/dist/src/types.js +8 -0
- package/dist/src/types.js.map +1 -1
- package/dist/src/utils.d.ts +30 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/utils.js +70 -0
- package/dist/src/utils.js.map +1 -0
- package/dist/src/way-is-area.d.ts +24 -0
- package/dist/src/way-is-area.d.ts.map +1 -0
- package/dist/src/way-is-area.js +104 -0
- package/dist/src/way-is-area.js.map +1 -0
- package/dist/src/zigzag.d.ts +33 -0
- package/dist/src/zigzag.d.ts.map +1 -0
- package/dist/src/zigzag.js +40 -0
- package/dist/src/zigzag.js.map +1 -0
- package/dist/stream-to-bytes.d.ts +18 -0
- package/dist/stream-to-bytes.d.ts.map +1 -0
- package/dist/stream-to-bytes.js +30 -0
- package/dist/stream-to-bytes.js.map +1 -0
- package/dist/test/fixtures.d.ts +36 -0
- package/dist/test/fixtures.d.ts.map +1 -0
- package/dist/test/fixtures.js +175 -0
- package/dist/test/fixtures.js.map +1 -0
- package/dist/test/haversine-distance.test.js +2 -2
- package/dist/test/haversine-distance.test.js.map +1 -1
- package/dist/test/relation-kind.test.d.ts +2 -0
- package/dist/test/relation-kind.test.d.ts.map +1 -0
- package/dist/test/relation-kind.test.js +367 -0
- package/dist/test/relation-kind.test.js.map +1 -0
- package/dist/test/relation-multipolygon.test.d.ts +2 -0
- package/dist/test/relation-multipolygon.test.d.ts.map +1 -0
- package/dist/test/relation-multipolygon.test.js +237 -0
- package/dist/test/relation-multipolygon.test.js.map +1 -0
- package/dist/test/utils.test.d.ts +2 -0
- package/dist/test/utils.test.d.ts.map +1 -0
- package/dist/test/utils.test.js +76 -0
- package/dist/test/utils.test.js.map +1 -0
- package/dist/test/way-is-area.test.d.ts +2 -0
- package/dist/test/way-is-area.test.d.ts.map +1 -0
- package/dist/test/way-is-area.test.js +31 -0
- package/dist/test/way-is-area.test.js.map +1 -0
- package/dist/throttle.d.ts +25 -0
- package/dist/throttle.d.ts.map +1 -0
- package/dist/throttle.js +34 -0
- package/dist/throttle.js.map +1 -0
- package/dist/tile.d.ts +34 -0
- package/dist/tile.d.ts.map +1 -0
- package/dist/tile.js +72 -0
- package/dist/tile.js.map +1 -0
- package/dist/transform-bytes.d.ts +24 -0
- package/dist/transform-bytes.d.ts.map +1 -0
- package/dist/transform-bytes.js +28 -0
- package/dist/transform-bytes.js.map +1 -0
- package/dist/types.d.ts +99 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/dist/utils.d.ts +30 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +70 -0
- package/dist/utils.js.map +1 -0
- package/dist/way-is-area.d.ts +24 -0
- package/dist/way-is-area.d.ts.map +1 -0
- package/dist/way-is-area.js +104 -0
- package/dist/way-is-area.js.map +1 -0
- package/dist/zigzag.d.ts +33 -0
- package/dist/zigzag.d.ts.map +1 -0
- package/dist/zigzag.js +40 -0
- package/dist/zigzag.js.map +1 -0
- package/package.json +11 -10
- package/src/assert.ts +21 -1
- package/src/bbox-intersects.ts +30 -0
- package/src/bytes-to-stream.ts +17 -0
- package/src/color.ts +37 -0
- package/src/coordinates.ts +45 -0
- package/src/haversine-distance.ts +10 -1
- package/src/progress.ts +74 -0
- package/src/relation-kind.ts +446 -0
- package/src/relation-multipolygon.ts +225 -0
- package/src/stream-to-bytes.ts +17 -0
- package/src/test/fixtures.ts +16 -12
- package/src/throttle.ts +37 -0
- package/src/tile.ts +89 -0
- package/src/transform-bytes.ts +23 -0
- package/src/types.ts +93 -1
- package/src/utils.ts +79 -0
- package/src/way-is-area.ts +107 -0
- package/src/zigzag.ts +42 -0
- package/test/haversine-distance.test.ts +2 -2
- package/test/relation-kind.test.ts +426 -0
- package/test/relation-multipolygon.test.ts +265 -0
- package/test/utils.test.ts +103 -0
- package/test/way-is-area.test.ts +42 -0
- package/tsconfig/test.json +1 -0
- package/tsconfig.build.json +5 -0
- package/dist/src/spherical-mercator.d.ts +0 -15
- package/dist/src/spherical-mercator.d.ts.map +0 -1
- package/dist/src/spherical-mercator.js +0 -35
- package/dist/src/spherical-mercator.js.map +0 -1
- package/dist/src/spherical-mercator.test.d.ts +0 -2
- package/dist/src/spherical-mercator.test.d.ts.map +0 -1
- package/dist/src/spherical-mercator.test.js +0 -25
- package/dist/src/spherical-mercator.test.js.map +0 -1
- package/src/spherical-mercator.test.ts +0 -42
- package/src/spherical-mercator.ts +0 -42
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { dirname, join, resolve } from "node:path";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
3
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
4
|
+
const ROOT_DIR = resolve(__dirname, "../../../../");
|
|
5
|
+
const FIXTURES_DIR = resolve(ROOT_DIR, "fixtures");
|
|
6
|
+
export function getFixturePath(url) {
|
|
7
|
+
if (url.startsWith("http")) {
|
|
8
|
+
const fileName = url.split("/").pop();
|
|
9
|
+
if (!fileName)
|
|
10
|
+
throw new Error("Invalid URL");
|
|
11
|
+
return join(FIXTURES_DIR, fileName);
|
|
12
|
+
}
|
|
13
|
+
return join(FIXTURES_DIR, url);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get file from the cache folder or download it from the URL
|
|
17
|
+
*/
|
|
18
|
+
export async function getFixtureFile(url) {
|
|
19
|
+
const filePath = getFixturePath(url);
|
|
20
|
+
try {
|
|
21
|
+
const file = await Bun.file(filePath).arrayBuffer();
|
|
22
|
+
return new Uint8Array(file);
|
|
23
|
+
}
|
|
24
|
+
catch (_error) {
|
|
25
|
+
if (process.env["CI"]) {
|
|
26
|
+
throw Error(`Do not download fixtures in CI: ${url} not found`);
|
|
27
|
+
}
|
|
28
|
+
const response = await fetch(url);
|
|
29
|
+
const buffer = await response.arrayBuffer();
|
|
30
|
+
const data = new Uint8Array(buffer);
|
|
31
|
+
await Bun.write(filePath, data);
|
|
32
|
+
return data;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export function getFixtureFileReadStream(url) {
|
|
36
|
+
return Bun.file(getFixturePath(url)).stream();
|
|
37
|
+
}
|
|
38
|
+
export function getFixtureFileWriteStream(url) {
|
|
39
|
+
const incrementalWriter = Bun.file(getFixturePath(url)).writer();
|
|
40
|
+
return new WritableStream({
|
|
41
|
+
write: (chunk) => {
|
|
42
|
+
incrementalWriter.write(chunk);
|
|
43
|
+
},
|
|
44
|
+
close: () => {
|
|
45
|
+
incrementalWriter.end();
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* List of PBFs and their metadata used for testing. Cached locally in the top level fixtures directory so they can
|
|
51
|
+
* be used across packages and apps.
|
|
52
|
+
*
|
|
53
|
+
* `monaco.pbf` is checked into the repository so it can be used in CI without causing repeated downloads.
|
|
54
|
+
*
|
|
55
|
+
* Below, we export a subset of the PBFs that we want to use for current tests.
|
|
56
|
+
*/
|
|
57
|
+
const monacoPbfFixture = {
|
|
58
|
+
url: "monaco.pbf",
|
|
59
|
+
bbox: {
|
|
60
|
+
bottom: 43.7232244,
|
|
61
|
+
top: 43.7543687,
|
|
62
|
+
left: 7.4053929,
|
|
63
|
+
right: 7.4447259,
|
|
64
|
+
},
|
|
65
|
+
nodesWithTags: 1_254,
|
|
66
|
+
nodes: 14_286,
|
|
67
|
+
ways: 3_346,
|
|
68
|
+
relations: 46,
|
|
69
|
+
node0: {
|
|
70
|
+
lat: 43.7371175,
|
|
71
|
+
lon: 7.4229093,
|
|
72
|
+
id: 21911883,
|
|
73
|
+
},
|
|
74
|
+
way0: 4097656,
|
|
75
|
+
relation0: 3410831,
|
|
76
|
+
uniqueStrings: 1_060,
|
|
77
|
+
primitiveGroups: 7,
|
|
78
|
+
};
|
|
79
|
+
export const AllPBFs = {
|
|
80
|
+
monaco: monacoPbfFixture,
|
|
81
|
+
montenegro: {
|
|
82
|
+
url: "https://download.geofabrik.de/europe/montenegro-250101.osm.pbf",
|
|
83
|
+
bbox: {
|
|
84
|
+
bottom: 41.61621,
|
|
85
|
+
top: 43.562169,
|
|
86
|
+
left: 18.17282,
|
|
87
|
+
right: 20.358827,
|
|
88
|
+
},
|
|
89
|
+
nodesWithTags: 63_321,
|
|
90
|
+
nodes: 3_915_383,
|
|
91
|
+
ways: 321_330,
|
|
92
|
+
relations: 5_501,
|
|
93
|
+
node0: {
|
|
94
|
+
lat: 42.1982436,
|
|
95
|
+
lon: 18.9656482,
|
|
96
|
+
id: 26860768,
|
|
97
|
+
},
|
|
98
|
+
way0: 123,
|
|
99
|
+
relation0: 123,
|
|
100
|
+
uniqueStrings: 55_071,
|
|
101
|
+
primitiveGroups: 532,
|
|
102
|
+
},
|
|
103
|
+
croatia: {
|
|
104
|
+
url: "https://download.geofabrik.de/europe/croatia-250101.osm.pbf",
|
|
105
|
+
bbox: {
|
|
106
|
+
bottom: 42.16483,
|
|
107
|
+
top: 46.557562,
|
|
108
|
+
left: 13.08916,
|
|
109
|
+
right: 19.459968,
|
|
110
|
+
},
|
|
111
|
+
nodesWithTags: 481_613,
|
|
112
|
+
nodes: 23_063_621,
|
|
113
|
+
ways: 2_315_247,
|
|
114
|
+
relations: 39_098,
|
|
115
|
+
primitiveGroups: 3_178,
|
|
116
|
+
node0: {
|
|
117
|
+
lat: 42.9738772,
|
|
118
|
+
lon: 17.021989,
|
|
119
|
+
id: 4_511_653,
|
|
120
|
+
},
|
|
121
|
+
way0: 123,
|
|
122
|
+
relation0: 123,
|
|
123
|
+
uniqueStrings: 269_315,
|
|
124
|
+
},
|
|
125
|
+
italy: {
|
|
126
|
+
url: "https://download.geofabrik.de/europe/italy-250101.osm.pbf",
|
|
127
|
+
bbox: {
|
|
128
|
+
bottom: 35.07638,
|
|
129
|
+
left: 6.602696,
|
|
130
|
+
right: 19.12499,
|
|
131
|
+
top: 47.100045,
|
|
132
|
+
},
|
|
133
|
+
nodesWithTags: 1_513_303,
|
|
134
|
+
nodes: 250_818_620,
|
|
135
|
+
ways: 27_837_987,
|
|
136
|
+
relations: 100_000,
|
|
137
|
+
primitiveGroups: 34_901,
|
|
138
|
+
node0: {
|
|
139
|
+
lat: 41.9033,
|
|
140
|
+
lon: 12.4534,
|
|
141
|
+
id: 1,
|
|
142
|
+
},
|
|
143
|
+
way0: 123,
|
|
144
|
+
relation0: 123,
|
|
145
|
+
uniqueStrings: 3190,
|
|
146
|
+
},
|
|
147
|
+
washington: {
|
|
148
|
+
url: "https://download.geofabrik.de/north-america/us/washington-250101.osm.pbf",
|
|
149
|
+
bbox: {
|
|
150
|
+
bottom: 45.53882,
|
|
151
|
+
top: 49.00708,
|
|
152
|
+
left: -126.7423,
|
|
153
|
+
right: -116.911526,
|
|
154
|
+
},
|
|
155
|
+
nodesWithTags: 1_513_303,
|
|
156
|
+
nodes: 43_032_447,
|
|
157
|
+
ways: 4_541_651,
|
|
158
|
+
relations: 44_373,
|
|
159
|
+
node0: {
|
|
160
|
+
lat: 47.64248,
|
|
161
|
+
lon: -122.3196898,
|
|
162
|
+
id: 29445653,
|
|
163
|
+
},
|
|
164
|
+
way0: 123,
|
|
165
|
+
relation0: 123,
|
|
166
|
+
uniqueStrings: 598_993,
|
|
167
|
+
primitiveGroups: 34_901,
|
|
168
|
+
},
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* A subset of the PBFs that we want to use for current tests. Do not check in changes to this list as it will cause CI to
|
|
172
|
+
* attempt to download PBFs that are not checked into the repository.
|
|
173
|
+
*/
|
|
174
|
+
export const PBFs = { monaco: monacoPbfFixture };
|
|
175
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../src/test/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AACzD,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,cAAc,CAAC,CAAA;AACnD,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAA;AAElD,MAAM,UAAU,cAAc,CAAC,GAAW;IACzC,IAAI,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QAC5B,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAA;QACrC,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAA;QAC7C,OAAO,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAA;IACpC,CAAC;IACD,OAAO,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAA;AAC/B,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CACnC,GAAW;IAEX,MAAM,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,CAAA;IACpC,IAAI,CAAC;QACJ,MAAM,IAAI,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,WAAW,EAAE,CAAA;QACnD,OAAO,IAAI,UAAU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AK,EAAE;QACN,GAAG,EAAE,2DAA2D;QAChE,IAAI,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,QAAQ;YACf,GAAG,EAAE,SAAS;SACd;QACD,aAAa,EAAE,SAAS;QACxB,KAAK,EAAE,WAAW;QAClB,IAAI,EAAE,UAAU;QAChB,SAAS,EAAE,OAAO;QAClB,eAAe,EAAE,MAAM;QACvB,KAAK,EAAE;YACN,GAAG,EAAE,OAAO;YACZ,GAAG,EAAE,OAAO;YACZ,EAAE,EAAE,CAAC;SACL;QACD,IAAI,EAAE,GAAG;QACT,SAAS,EAAE,GAAG;QACd,aAAa,EAAE,IAAI;KACnB;IACD,UAAU,EAAE;QACX,GAAG,EAAE,0EAA0E;QAC/E,IAAI,EAAE;YACL,MAAM,EAAE,QAAQ;YAChB,GAAG,EAAE,QAAQ;YACb,IAAI,EAAE,CAAC,QAAQ;YACf,KAAK,EAAE,CAAC,UAAU;SAClB;QACD,aAAa,EAAE,SAAS;QACxB,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE;YACN,GAAG,EAAE,QAAQ;YACb,GAAG,EAAE,CAAC,WAAW;YACjB,EAAE,EAAE,QAAQ;SACZ;QACD,IAAI,EAAE,GAAG;QACT,SAAS,EAAE,GAAG;QACd,aAAa,EAAE,OAAO;QACtB,eAAe,EAAE,MAAM;KACvB;CACQ,CAAA;AAEV;;;GAGG;AACH,MAAM,CAAC,MAAM,IAAI,GAA+B,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { expect, test } from "bun:test";
|
|
2
2
|
import { haversineDistance } from "../src/haversine-distance";
|
|
3
3
|
test("haversineDistance", () => {
|
|
4
4
|
const p1 = [-75.343, 39.984];
|
|
5
5
|
const p2 = [-75.534, 39.123];
|
|
6
|
-
|
|
6
|
+
expect(haversineDistance(p1, p2)).toBeCloseTo(97129.2211, 3);
|
|
7
7
|
});
|
|
8
8
|
//# sourceMappingURL=haversine-distance.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"haversine-distance.test.js","sourceRoot":"","sources":["../../test/haversine-distance.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"haversine-distance.test.js","sourceRoot":"","sources":["../../test/haversine-distance.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAE7D,IAAI,CAAC,mBAAmB,EAAE,GAAG,EAAE;IAC9B,MAAM,EAAE,GAAqB,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9C,MAAM,EAAE,GAAqB,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC9C,MAAM,CAAC,iBAAiB,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,CAAC,CAAA;AAC7D,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation-kind.test.d.ts","sourceRoot":"","sources":["../../test/relation-kind.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
import { describe, expect, it } from "bun:test";
|
|
2
|
+
import { buildRelationLineStrings, collectRelationPoints, getRelationKind, getRelationKindMetadata, isAreaRelation, isLineRelation, isLogicRelation, isPointRelation, isSuperRelation, resolveRelationMembers, } from "../src/relation-kind";
|
|
3
|
+
describe("relation-kind", () => {
|
|
4
|
+
describe("getRelationKind", () => {
|
|
5
|
+
it("identifies multipolygon as area", () => {
|
|
6
|
+
const relation = {
|
|
7
|
+
id: 1,
|
|
8
|
+
tags: { type: "multipolygon" },
|
|
9
|
+
members: [],
|
|
10
|
+
};
|
|
11
|
+
expect(getRelationKind(relation)).toBe("area");
|
|
12
|
+
});
|
|
13
|
+
it("identifies boundary as area", () => {
|
|
14
|
+
const relation = {
|
|
15
|
+
id: 1,
|
|
16
|
+
tags: { type: "boundary" },
|
|
17
|
+
members: [],
|
|
18
|
+
};
|
|
19
|
+
expect(getRelationKind(relation)).toBe("area");
|
|
20
|
+
});
|
|
21
|
+
it("identifies route as line", () => {
|
|
22
|
+
const relation = {
|
|
23
|
+
id: 1,
|
|
24
|
+
tags: { type: "route" },
|
|
25
|
+
members: [],
|
|
26
|
+
};
|
|
27
|
+
expect(getRelationKind(relation)).toBe("line");
|
|
28
|
+
});
|
|
29
|
+
it("identifies multilinestring as line", () => {
|
|
30
|
+
const relation = {
|
|
31
|
+
id: 1,
|
|
32
|
+
tags: { type: "multilinestring" },
|
|
33
|
+
members: [],
|
|
34
|
+
};
|
|
35
|
+
expect(getRelationKind(relation)).toBe("line");
|
|
36
|
+
});
|
|
37
|
+
it("identifies multipoint as point", () => {
|
|
38
|
+
const relation = {
|
|
39
|
+
id: 1,
|
|
40
|
+
tags: { type: "multipoint" },
|
|
41
|
+
members: [],
|
|
42
|
+
};
|
|
43
|
+
expect(getRelationKind(relation)).toBe("point");
|
|
44
|
+
});
|
|
45
|
+
it("identifies restriction as logic", () => {
|
|
46
|
+
const relation = {
|
|
47
|
+
id: 1,
|
|
48
|
+
tags: { type: "restriction" },
|
|
49
|
+
members: [],
|
|
50
|
+
};
|
|
51
|
+
expect(getRelationKind(relation)).toBe("logic");
|
|
52
|
+
});
|
|
53
|
+
it("identifies super-relation by having relation members", () => {
|
|
54
|
+
const relation = {
|
|
55
|
+
id: 1,
|
|
56
|
+
tags: { type: "collection" },
|
|
57
|
+
members: [{ type: "relation", ref: 2 }],
|
|
58
|
+
};
|
|
59
|
+
expect(getRelationKind(relation)).toBe("super");
|
|
60
|
+
});
|
|
61
|
+
it("defaults to logic for untyped relations", () => {
|
|
62
|
+
const relation = {
|
|
63
|
+
id: 1,
|
|
64
|
+
members: [],
|
|
65
|
+
};
|
|
66
|
+
expect(getRelationKind(relation)).toBe("logic");
|
|
67
|
+
});
|
|
68
|
+
it("handles case-insensitive type tags", () => {
|
|
69
|
+
const relation = {
|
|
70
|
+
id: 1,
|
|
71
|
+
tags: { type: "MULTIPOLYGON" },
|
|
72
|
+
members: [],
|
|
73
|
+
};
|
|
74
|
+
expect(getRelationKind(relation)).toBe("area");
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
describe("getRelationKindMetadata", () => {
|
|
78
|
+
it("returns correct metadata for area relations", () => {
|
|
79
|
+
const relation = {
|
|
80
|
+
id: 1,
|
|
81
|
+
tags: { type: "multipolygon" },
|
|
82
|
+
members: [],
|
|
83
|
+
};
|
|
84
|
+
const metadata = getRelationKindMetadata(relation);
|
|
85
|
+
expect(metadata.kind).toBe("area");
|
|
86
|
+
expect(metadata.expectedRoles).toEqual(["outer", "inner"]);
|
|
87
|
+
expect(metadata.orderMatters).toBe(false);
|
|
88
|
+
});
|
|
89
|
+
it("returns correct metadata for line relations", () => {
|
|
90
|
+
const relation = {
|
|
91
|
+
id: 1,
|
|
92
|
+
tags: { type: "route" },
|
|
93
|
+
members: [],
|
|
94
|
+
};
|
|
95
|
+
const metadata = getRelationKindMetadata(relation);
|
|
96
|
+
expect(metadata.kind).toBe("line");
|
|
97
|
+
expect(metadata.orderMatters).toBe(true);
|
|
98
|
+
});
|
|
99
|
+
});
|
|
100
|
+
describe("isAreaRelation", () => {
|
|
101
|
+
it("returns true for multipolygon", () => {
|
|
102
|
+
const relation = {
|
|
103
|
+
id: 1,
|
|
104
|
+
tags: { type: "multipolygon" },
|
|
105
|
+
members: [],
|
|
106
|
+
};
|
|
107
|
+
expect(isAreaRelation(relation)).toBe(true);
|
|
108
|
+
});
|
|
109
|
+
it("returns false for route", () => {
|
|
110
|
+
const relation = {
|
|
111
|
+
id: 1,
|
|
112
|
+
tags: { type: "route" },
|
|
113
|
+
members: [],
|
|
114
|
+
};
|
|
115
|
+
expect(isAreaRelation(relation)).toBe(false);
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
describe("isLineRelation", () => {
|
|
119
|
+
it("returns true for route", () => {
|
|
120
|
+
const relation = {
|
|
121
|
+
id: 1,
|
|
122
|
+
tags: { type: "route" },
|
|
123
|
+
members: [],
|
|
124
|
+
};
|
|
125
|
+
expect(isLineRelation(relation)).toBe(true);
|
|
126
|
+
});
|
|
127
|
+
it("returns true for multilinestring", () => {
|
|
128
|
+
const relation = {
|
|
129
|
+
id: 1,
|
|
130
|
+
tags: { type: "multilinestring" },
|
|
131
|
+
members: [],
|
|
132
|
+
};
|
|
133
|
+
expect(isLineRelation(relation)).toBe(true);
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
describe("isPointRelation", () => {
|
|
137
|
+
it("returns true for multipoint", () => {
|
|
138
|
+
const relation = {
|
|
139
|
+
id: 1,
|
|
140
|
+
tags: { type: "multipoint" },
|
|
141
|
+
members: [],
|
|
142
|
+
};
|
|
143
|
+
expect(isPointRelation(relation)).toBe(true);
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
describe("isSuperRelation", () => {
|
|
147
|
+
it("returns true for relation with relation members", () => {
|
|
148
|
+
const relation = {
|
|
149
|
+
id: 1,
|
|
150
|
+
tags: { type: "collection" },
|
|
151
|
+
members: [{ type: "relation", ref: 2 }],
|
|
152
|
+
};
|
|
153
|
+
expect(isSuperRelation(relation)).toBe(true);
|
|
154
|
+
});
|
|
155
|
+
it("returns false for relation without relation members", () => {
|
|
156
|
+
const relation = {
|
|
157
|
+
id: 1,
|
|
158
|
+
tags: { type: "route" },
|
|
159
|
+
members: [{ type: "way", ref: 2 }],
|
|
160
|
+
};
|
|
161
|
+
expect(isSuperRelation(relation)).toBe(false);
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
describe("isLogicRelation", () => {
|
|
165
|
+
it("returns true for restriction", () => {
|
|
166
|
+
const relation = {
|
|
167
|
+
id: 1,
|
|
168
|
+
tags: { type: "restriction" },
|
|
169
|
+
members: [],
|
|
170
|
+
};
|
|
171
|
+
expect(isLogicRelation(relation)).toBe(true);
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
describe("buildRelationLineStrings", () => {
|
|
175
|
+
it("builds linestrings from connected ways", () => {
|
|
176
|
+
const relation = {
|
|
177
|
+
id: 1,
|
|
178
|
+
tags: { type: "route" },
|
|
179
|
+
members: [
|
|
180
|
+
{ type: "way", ref: 1 },
|
|
181
|
+
{ type: "way", ref: 2 },
|
|
182
|
+
],
|
|
183
|
+
};
|
|
184
|
+
const way1 = { id: 1, refs: [1, 2] };
|
|
185
|
+
const way2 = { id: 2, refs: [2, 3] };
|
|
186
|
+
const getWay = (id) => {
|
|
187
|
+
if (id === 1)
|
|
188
|
+
return way1;
|
|
189
|
+
if (id === 2)
|
|
190
|
+
return way2;
|
|
191
|
+
return null;
|
|
192
|
+
};
|
|
193
|
+
const getNodeCoordinates = (id) => {
|
|
194
|
+
const coords = {
|
|
195
|
+
1: [0.0, 0.0],
|
|
196
|
+
2: [1.0, 0.0],
|
|
197
|
+
3: [2.0, 0.0],
|
|
198
|
+
};
|
|
199
|
+
return coords[id];
|
|
200
|
+
};
|
|
201
|
+
const lineStrings = buildRelationLineStrings(relation, getWay, getNodeCoordinates);
|
|
202
|
+
expect(lineStrings).toHaveLength(1);
|
|
203
|
+
expect(lineStrings[0]).toHaveLength(3);
|
|
204
|
+
});
|
|
205
|
+
it("handles disconnected ways as separate linestrings", () => {
|
|
206
|
+
const relation = {
|
|
207
|
+
id: 1,
|
|
208
|
+
tags: { type: "route" },
|
|
209
|
+
members: [
|
|
210
|
+
{ type: "way", ref: 1 },
|
|
211
|
+
{ type: "way", ref: 2 },
|
|
212
|
+
],
|
|
213
|
+
};
|
|
214
|
+
const way1 = { id: 1, refs: [1, 2] };
|
|
215
|
+
const way2 = { id: 2, refs: [3, 4] };
|
|
216
|
+
const getWay = (id) => {
|
|
217
|
+
if (id === 1)
|
|
218
|
+
return way1;
|
|
219
|
+
if (id === 2)
|
|
220
|
+
return way2;
|
|
221
|
+
return null;
|
|
222
|
+
};
|
|
223
|
+
const getNodeCoordinates = (id) => {
|
|
224
|
+
const coords = {
|
|
225
|
+
1: [0.0, 0.0],
|
|
226
|
+
2: [1.0, 0.0],
|
|
227
|
+
3: [10.0, 10.0],
|
|
228
|
+
4: [11.0, 10.0],
|
|
229
|
+
};
|
|
230
|
+
return coords[id];
|
|
231
|
+
};
|
|
232
|
+
const lineStrings = buildRelationLineStrings(relation, getWay, getNodeCoordinates);
|
|
233
|
+
expect(lineStrings.length).toBeGreaterThanOrEqual(2);
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
describe("collectRelationPoints", () => {
|
|
237
|
+
it("collects point coordinates from node members", () => {
|
|
238
|
+
const relation = {
|
|
239
|
+
id: 1,
|
|
240
|
+
tags: { type: "multipoint" },
|
|
241
|
+
members: [
|
|
242
|
+
{ type: "node", ref: 1 },
|
|
243
|
+
{ type: "node", ref: 2 },
|
|
244
|
+
{ type: "way", ref: 10 }, // Should be ignored
|
|
245
|
+
],
|
|
246
|
+
};
|
|
247
|
+
const getNodeCoordinates = (id) => {
|
|
248
|
+
const coords = {
|
|
249
|
+
1: [0.0, 0.0],
|
|
250
|
+
2: [1.0, 1.0],
|
|
251
|
+
};
|
|
252
|
+
return coords[id];
|
|
253
|
+
};
|
|
254
|
+
const points = collectRelationPoints(relation, getNodeCoordinates);
|
|
255
|
+
expect(points).toHaveLength(2);
|
|
256
|
+
expect(points[0]).toEqual([0.0, 0.0]);
|
|
257
|
+
expect(points[1]).toEqual([1.0, 1.0]);
|
|
258
|
+
});
|
|
259
|
+
it("handles missing node coordinates", () => {
|
|
260
|
+
const relation = {
|
|
261
|
+
id: 1,
|
|
262
|
+
tags: { type: "multipoint" },
|
|
263
|
+
members: [
|
|
264
|
+
{ type: "node", ref: 1 },
|
|
265
|
+
{ type: "node", ref: 2 },
|
|
266
|
+
],
|
|
267
|
+
};
|
|
268
|
+
const getNodeCoordinates = (id) => {
|
|
269
|
+
if (id === 1)
|
|
270
|
+
return [0.0, 0.0];
|
|
271
|
+
return undefined; // Missing coordinate
|
|
272
|
+
};
|
|
273
|
+
const points = collectRelationPoints(relation, getNodeCoordinates);
|
|
274
|
+
expect(points).toHaveLength(1);
|
|
275
|
+
});
|
|
276
|
+
});
|
|
277
|
+
describe("resolveRelationMembers", () => {
|
|
278
|
+
it("resolves direct members", () => {
|
|
279
|
+
const relation = {
|
|
280
|
+
id: 1,
|
|
281
|
+
tags: { type: "collection" },
|
|
282
|
+
members: [
|
|
283
|
+
{ type: "node", ref: 1 },
|
|
284
|
+
{ type: "way", ref: 10 },
|
|
285
|
+
],
|
|
286
|
+
};
|
|
287
|
+
const getRelation = () => null;
|
|
288
|
+
const resolved = resolveRelationMembers(relation, getRelation);
|
|
289
|
+
expect(resolved.nodes).toEqual([1]);
|
|
290
|
+
expect(resolved.ways).toEqual([10]);
|
|
291
|
+
expect(resolved.relations).toEqual([]);
|
|
292
|
+
});
|
|
293
|
+
it("resolves nested relation members", () => {
|
|
294
|
+
const relation1 = {
|
|
295
|
+
id: 1,
|
|
296
|
+
tags: { type: "collection" },
|
|
297
|
+
members: [
|
|
298
|
+
{ type: "relation", ref: 2 },
|
|
299
|
+
{ type: "node", ref: 1 },
|
|
300
|
+
],
|
|
301
|
+
};
|
|
302
|
+
const relation2 = {
|
|
303
|
+
id: 2,
|
|
304
|
+
tags: { type: "collection" },
|
|
305
|
+
members: [
|
|
306
|
+
{ type: "way", ref: 10 },
|
|
307
|
+
{ type: "node", ref: 2 },
|
|
308
|
+
],
|
|
309
|
+
};
|
|
310
|
+
const getRelation = (id) => {
|
|
311
|
+
if (id === 2)
|
|
312
|
+
return relation2;
|
|
313
|
+
return null;
|
|
314
|
+
};
|
|
315
|
+
const resolved = resolveRelationMembers(relation1, getRelation);
|
|
316
|
+
expect(resolved.nodes).toContain(1);
|
|
317
|
+
expect(resolved.nodes).toContain(2);
|
|
318
|
+
expect(resolved.ways).toContain(10);
|
|
319
|
+
expect(resolved.relations).toContain(2);
|
|
320
|
+
});
|
|
321
|
+
it("detects cycles and prevents infinite recursion", () => {
|
|
322
|
+
const relation1 = {
|
|
323
|
+
id: 1,
|
|
324
|
+
tags: { type: "collection" },
|
|
325
|
+
members: [{ type: "relation", ref: 2 }],
|
|
326
|
+
};
|
|
327
|
+
const relation2 = {
|
|
328
|
+
id: 2,
|
|
329
|
+
tags: { type: "collection" },
|
|
330
|
+
members: [{ type: "relation", ref: 1 }], // Circular reference
|
|
331
|
+
};
|
|
332
|
+
const getRelation = (id) => {
|
|
333
|
+
if (id === 1)
|
|
334
|
+
return relation1;
|
|
335
|
+
if (id === 2)
|
|
336
|
+
return relation2;
|
|
337
|
+
return null;
|
|
338
|
+
};
|
|
339
|
+
const resolved = resolveRelationMembers(relation1, getRelation, 10);
|
|
340
|
+
// Should not crash and should include relation2 but not recurse infinitely
|
|
341
|
+
expect(resolved.relations).toContain(2);
|
|
342
|
+
});
|
|
343
|
+
it("respects maxDepth limit", () => {
|
|
344
|
+
const relation1 = {
|
|
345
|
+
id: 1,
|
|
346
|
+
tags: { type: "collection" },
|
|
347
|
+
members: [{ type: "relation", ref: 2 }],
|
|
348
|
+
};
|
|
349
|
+
const relation2 = {
|
|
350
|
+
id: 2,
|
|
351
|
+
tags: { type: "collection" },
|
|
352
|
+
members: [{ type: "node", ref: 100 }],
|
|
353
|
+
};
|
|
354
|
+
const getRelation = (id) => {
|
|
355
|
+
if (id === 1)
|
|
356
|
+
return relation1;
|
|
357
|
+
if (id === 2)
|
|
358
|
+
return relation2;
|
|
359
|
+
return null;
|
|
360
|
+
};
|
|
361
|
+
const resolved = resolveRelationMembers(relation1, getRelation, 0);
|
|
362
|
+
// Should not resolve nested relation when maxDepth is 0
|
|
363
|
+
expect(resolved.nodes).not.toContain(100);
|
|
364
|
+
});
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
//# sourceMappingURL=relation-kind.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation-kind.test.js","sourceRoot":"","sources":["../../test/relation-kind.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EACN,wBAAwB,EACxB,qBAAqB,EACrB,eAAe,EACf,uBAAuB,EACvB,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,eAAe,EACf,sBAAsB,GACtB,MAAM,sBAAsB,CAAA;AAG7B,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC9B,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;QAChC,EAAE,CAAC,iCAAiC,EAAE,GAAG,EAAE;YAC1C,MAAM,QAAQ,GAAgB;gBAC7B,EAAE,EAAE,CAAC;gBACL,IAAI,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE;gBAC9B,OAAO,EAAE,EAAE;aACX,CAAA;YACD,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC/C,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;YACtC,MAAM,QAAQ,GAAgB;gBAC7B,EAAE,EAAE,CAAC;gBACL,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE;gBAC1B,OAAO,EAAE,EAAE;aACX,CAAA;YACD,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC/C,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,0BAA0B,EAAE,GAAG,EAAE;YACnC,MAAM,QAAQ,GAAgB;gBAC7B,EAAE,EAAE,CAAC;gBACL,IAAI,EAAE,EAAE,IAAI,EAAE,OA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