Keep a lookup's places when one tile fails, and ship every tile as its own file

- A tile that cannot be read is left out of placesNear's answer instead of
  failing it; without the pack's index the cities are still the answer.
- The build no longer inlines the small tiles into one chunk that loaded
  with the first lookup: all 732 are their own files.
- A row at latitude 90 or longitude 180 is tiled where the lookups read it.
- --min-population 0 is taken as 0, not as the default.

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju committed 2026-11-18 12:36:16 -08:00
1 parent 2a01269b87
commit 88919f760f
6 files changed
+40 -9

No files matched your search

+2
View File
@@ -24,6 +24,8 @@ test('a tile is named by its south-west corner', () => {
assert.equal(tileKey(30.343, -97.557), '30_-100');
assert.equal(tileKey(-0.5, 0), '-5_0');
assert.equal(tileKey(10.682, -71.036), '10_-75');
// In the tiles the lookups read: the top row, and -180 for 180.
assert.equal(tileKey(90, 180), '85_-180');
});
test('re-tiles the shipped rows deterministically', async () => {