Bundle smaller Wikidata settlements for nearby-place lookups

137,662 places of 1,000 to 14,999 people that Wikidata gives a population
and coordinates for, none already in the cities pack, in 732 tiles of
5 x 5 degrees with an index of row counts (CC0). Nothing loads with the
app: a lookup reads the index once and then only the tiles it touches.
placesNear lists the places around a point, and findPlace finds a small
place by name near the view when no city of that name is near. The cities
build script writes the tiles with --tiles; the step from rows to files is
checked offline.

Co-authored-by: Sameh Khamis <[email protected]>
This commit is contained in:
Manjunath PaparajuandSameh Khamis authored and Sameh Khamis committed 2026-11-18 12:36:16 -08:00
1 parent 328b8f5d1b
commit 78305411eb
743 files changed
+2087 -14

No files matched your search

@@ -0,0 +1 @@
{"meta":{"source":"Wikidata (https://www.wikidata.org), via the Wikidata Query Service","license":"CC0 1.0","built":"2026-11-11T16:30:57.276Z","minPopulation":1000,"maxPopulation":15000,"count":137662,"columns":["name","lat","lon","population","country","wikidata"],"tileDegrees":5,"tiles":732},"tiles":{"-10_-40":1,"-10_-70":2,"-10_-75":9,"-10_-80":178,"-10_-85":8,"-10_10":1,"-10_105":37,"-10_110":7,"-10_115":7,"-10_120":5,"-10_125":16,"-10_140":2,"-10_145":3,"-10_155":3,"-10_160":2,"-10_175":1,"-10_25":2,"-10_30":11,"-10_35":6,"-15_-175":13,"-15_-180":1,"-15_-40":2,"-15_-50":1,"-15_-65":5,"-15_-70":19,"-15_-75":100,"-15_-80":90,"-15_105":1,"-15_125":1,"-15_130":56,"-15_135":3,"-15_140":5,"-15_165":1,"-15_20":5,"-15_25":7,"-15_30":8,"-15_35":3,"-15_40":79,"-15_45":2,"-20_-10":1,"-20_-155":3,"-20_-175":2,"-20_-40":1,"-20_-45":13,"-20_-50":3,"-20_-60":2,"-20_-65":48,"-20_-70":60,"-20_-75":37,"-20_10":5,"-20_120":6,"-20_125":3,"-20_130":1,"-20_135":4,"-20_140":2,"-20_145":111,"-20_15":10,"-20_165":5,"-20_175":6,"-20_20":7,"-20_25":7,"-20_30":5,"-20_35":2,"-20_55":1,"-20_60":2,"-25_-160":1,"-25_-175":1,"-25_-180":2,"-25_-45":11,"-25_-50":22,"-25_-55":7,"-25_-60":13,"-25_-65":16,"-25_-70":20,"-25_-75":1,"-25_10":4,"-25_110":4,"-25_115":13,"-25_120":1,"-25_130":8,"-25_135":8,"-25_140":3,"-25_145":50,"-25_15":14,"-25_150":71,"-25_20":4,"-25_25":16,"-25_30":5,"-25_55":15,"-30_-110":1,"-30_-55":28,"-30_-60":62,"-30_-65":46,"-30_-70":42,"-30_-75":6,"-30_110":20,"-30_130":1,"-30_135":1,"-30_145":8,"-30_15":6,"-30_150":612,"-30_20":2,"-30_25":13,"-30_30":8,"-35_-55":37,"-35_-60":148,"-35_-65":96,"-35_-70":12,"-35_-75":32,"-35_115":354,"-35_120":16,"-35_130":2,"-35_135":314,"-35_140":17,"-35_145":60,"-35_15":31,"-35_150":951,"-35_170":1,"-35_20":7,"-35_25":1,"-40_-60":10,"-40_-65":33,"-40_-70":11,"-40_-75":41,"-40_115":9,"-40_135":90,"-40_140":289,"-40_145":456,"-40_150":28,"-40_170":51,"-40_175":52,"-45_-65":1,"-45_-70":7,"-45_-75":24,"-45_145":129,"-45_165":4,"-45_170":43,"-45_175":17,"-5_-40":1,"-5_-50":1,"-5_-60":1,"-5_-70":2,"-5_-75":7,"-5_-80":54,"-5_-85":25,"-5_-90":1,"-5_-95":2,"-5_10":21,"-5_100":4,"-5_120":2,"-5_125":1,"-5_140":1,"-5_15":2,"-5_150":1,"-5_25":18,"-5_30":21,"-5_35":20,"-5_40":2,"-5_5":2,"-50_-70":1,"-50_-75":10,"-50_165":12,"-50_170":7,"-55_-60":1,"-55_-70":3,"-55_-75":2,"0_-10":2,"0_-160":2,"0_-55":6,"0_-60":3,"0_-65":3,"0_-70":1,"0_-75":2,"0_-80":11,"0_-85":1,"0_10":15,"0_100":6,"0_110":114,"0_115":12,"0_125":1,"0_15":10,"0_170":7,"0_20":2,"0_30":12,"0_35":3,"0_40":3,"0_5":11,"0_70":3,"0_95":2,"10_-10":8,"10_-15":26,"10_-20":27,"10_-25":4,"10_-5":14,"10_-60":4,"10_-65":37,"10_-70":14,"10_-75":5,"10_-80":1,"10_-85":26,"10_-90":507,"10_-95":13,"10_0":435,"10_10":28,"10_100":28,"10_105":2,"10_115":39,"10_120":521,"10_125":30,"10_140":18,"10_15":2,"10_20":2,"10_35":13,"10_40":888,"10_45":51,"10_5":375,"10_50":2,"10_70":2,"10_75":2701,"10_80":167,"10_90":1,"10_95":4,"15_-100":3671,"15_-105":740,"15_-110":5,"15_-15":7,"15_-155":5,"15_-160":24,"15_-25":18,"15_-30":3,"15_-5":1,"15_-65":23,"15_-70":215,"15_-75":1,"15_-80":10,"15_-85":6,"15_-90":202,"15_-95":742,"15_0":23,"15_10":1,"15_100":14,"15_105":20,"15_110":20,"15_115":42,"15_120":106,"15_145":1,"15_35":8,"15_40":587,"15_45":29,"15_5":41,"15_50":15,"15_55":1,"15_70":14,"15_75":2189,"15_80":4852,"15_95":10,"20_-100":896,"20_-105":1216,"20_-110":191,"20_-115":8,"20_-15":6,"20_-160":81,"20_-20":4,"20_-5":1,"20_-75":5,"20_-80":15,"20_-85":10,"20_-90":221,"20_-95":28,"20_0":1,"20_10":1,"20_100":54,"20_105":5,"20_110":87,"20_115":128,"20_120":4824,"20_15":1,"20_30":3,"20_35":5,"20_40":4,"20_45":3,"20_5":1,"20_55":2,"20_65":3,"20_70":16,"20_75":10,"20_80":6,"20_85":14469,"20_90":24,"20_95":21,"25_-10":72,"25_-100":279,"25_-105":176,"25_-110":259,"25_-115":52,"25_-120":1,"25_-15":47,"25_-20":62,"25_-5":16,"25_-80":5,"25_-85":561,"25_-90":9,"25_-95":118,"25_0":12,"25_10":1,"25_100":54,"25_105":185,"25_110":30,"25_115":43,"25_120":1294,"25_125":24,"25_130":1,"25_140":1,"25_25":14,"25_30":42,"25_35":3,"25_40":12,"25_45":14,"25_50":247,"25_55":172,"25_60":54,"25_65":6,"25_70":28,"25_75":58,"25_80":277,"25_85":3833,"25_90":7,"25_95":21,"30_-10":613,"30_-100":405,"30_-105":79,"30_-110":107,"30_-115":135,"30_-120":279,"30_-125":8,"30_-20":3,"30_-5":194,"30_-65":1,"30_-80":105,"30_-85":475,"30_-90":453,"30_-95":362,"30_10":5,"30_100":91,"30_105":323,"30_110":20,"30_120":6,"30_125":35,"30_130":380,"30_135":80,"30_15":3,"30_25":4,"30_30":341,"30_35":508,"30_40":9,"30_45":308,"30_50":347,"30_55":102,"30_60":41,"30_65":1,"30_70":94,"30_75":85,"30_90":1,"30_95":13,"35_-10":354,"35_-100":389,"35_-105":145,"35_-110":184,"35_-115":81,"35_-120":125,"35_-125":380,"35_-30":6,"35_-5":967,"35_-75":91,"35_-80":1116,"35_-85":1199,"35_-90":1126,"35_-95":1030,"35_0":167,"35_10":92,"35_100":155,"35_105":184,"35_110":271,"35_115":16,"35_125":18,"35_130":23,"35_135":269,"35_140":128,"35_15":33,"35_20":539,"35_25":1375,"35_30":1266,"35_35":1327,"35_40":834,"35_45":728,"35_5":33,"35_Line truncated