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 @@
{"rows":[["Bo'ness",56.017,-3.609,14760,"GB","Q896424"],["Larkhall",55.737,-3.972,14740,"GB","Q1012019"],["Prestwick",55.496,-4.614,14720,"GB","Q939049"],["Troon",55.54,-4.66,14710,"GB","Q1021167"],["Port Glasgow",55.94,-4.69,14620,"GB","Q1786145"],["Alloa",56.115,-3.791,14440,"GB","Q1009331"],["Morpeth",55.167,-1.691,14376,"GB","Q736785"],["Hawick",55.425,-2.784,14294,"GB","Q407183"],["Forfar",56.643,-2.89,14230,"GB","Q996509"],["Rosyth",56.034,-3.432,13780,"GB","Q376329"],["Helensburgh",56.007,-4.732,13640,"GB","Q1007088"],["Inverurie",57.284,-2.375,13640,"GB","Q1017537"],["Carluke",55.734,-3.834,13580,"GB","Q1011389"],["Mayfield",55.871,-3.036,13570,"GB","Q6797153"],["Cramond",55.967,-3.3,13409,"GB","Q1249896"],["Dalkeith",55.894,-3.068,13400,"GB","Q727520"],["Shiremoor",55.037,-1.505,13300,"GB","Q7498554"],["Fraserburgh",57.693,-2.005,13180,"GB","Q138873"],["Galashiels",55.621,-2.819,13000,"GB","Q1016925"],["Milngavie",55.942,-4.319,12940,"GB","Q1438673"],["Saltcoats",55.635,-4.79,12640,"GB","Q1018756"],["Armadale",55.898,-3.705,12550,"GB","Q2706897"],["Giffnock",55.798,-4.291,12300,"GB","Q1016935"],["Westhill",57.154,-2.284,12290,"GB","Q1002453"],["Tranent",55.945,-2.954,12140,"GB","Q1011336"],["Montrose",56.708,-2.467,12100,"GB","Q420303"],["Berwick-upon-Tweed",55.769,-2.002,12043,"GB","Q504678"],["West End",56.456,-2.996,11941,"GB","Q7985027"],["Ponteland",55.048,-1.747,11671,"GB","Q2262154"],["Cowdenbeath",56.11,-3.35,11640,"GB","Q1010263"],["Carnoustie",56.501,-2.715,11394,"GB","Q1012395"],["Largs",55.794,-4.864,11260,"GB","Q1016169"],["Stonehaven",56.96,-2.21,11170,"GB","Q1002177"],["Newington",55.937,-3.178,11130,"GB","Q14948852"],["Larbert",56.021,-3.831,11050,"GB","Q1389537"],["Whitburn",55.862,-3.687,10860,"GB","Q840684"],["Methil",56.184,-3.022,10800,"GB","Q938271"],["Millburn",57.482,-4.211,10773,"GB","Q15215683"],["Ardrossan",55.643,-4.81,10670,"GB","Q640073"],["Longbenton",55,-1.57,10617,"GB","Q3836649"],["Hilltown",56.468,-2.975,10592,"GB","Q15224099"],["Torry",57.137,-2.08,10465,"GB","Q7827168"],["Prestonpans",55.96,-2.961,10410,"GB","Q7242055"],["Benton",55.014,-1.587,10359,"GB","Q4890529"],["Gourock",55.95,-4.82,10350,"GB","Q2469984"],["Ellon",57.366,-2.086,10200,"GB","Q1026799"],["Forres",57.609,-3.616,10100,"GB","Q1010531"],["Fawdon",55.014,-1.645,10090,"GB","Q5438740"],["Kilsyth",55.98,-4.06,10080,"GB","Q1010328"],["Dalgety Bay",56.043,-3.368,10050,"GB","Q1984807"],["Nairn",57.583,-3.867,10022,"GB","Q980084"],["Clarkston",55.781,-4.288,9860,"GB","Q1446963"],["Choppington",55.145,-1.601,9787,"GB","Q5104873"],["Stenhousemuir",56.028,-3.806,9740,"GB","Q3358826"],["Pollokshields",55.84,-4.278,9738,"GB","Q7225729"],["Dunblane",56.188,-3.964,9410,"GB","Q614314"],["South Queensferry",55.987,-3.4,9350,"GB","Q767798"],["Stevenston",55.633,-4.767,9230,"GB","Q2376078"],["Wideopen",55.05,-1.624,9145,"GB","Q9372539"],["Haddington",55.956,-2.783,9130,"GB","Q2281658"],["Ardeer",55.628,-4.73,9129,"GB","Q4787878"],["Portlethen",57.061,-2.13,9090,"GB","Q1020236"],["Lanark",55.675,-3.777,9050,"GB","Q1002124"],["Bonhill",55.983,-4.57,9050,"GB","Q4093370"],["Leven",56.195,-2.994,9040,"GB","Q672948"],["Dunbar",55.998,-2.523,9030,"GB","Q1002133"],["Cupar",56.319,-3.012,9020,"GB","Q1012047"],["Blairgowrie",56.592,-3.34,9020,"GB","Q24657181"],["Peebles",55.652,-3.189,8940,"GB","Q1011507"],["Cumnock",55.453,-4.264,8830,"GB","Q1010019"],["Buckie",57.676,-2.982,8760,"GB","Q999708"],["Linwood",55.847,-4.502,8600,"GB","Q643104"],["Alnwick",55.413,-1.707,8583,"GB","Q1002826"],["Tullibody",56.135,-3.836,8580,"GB","Q971957"],["Bucksburn",57.177,-2.175,8572,"GB","Q4983491"],["Shotts",55.822,-3.804,8570,"GB","Q1009915"],["Woolsington",55.022,-1.689,8519,"GB","Q2665950"],["Preston",55.01,-1.445,8419,"GB","Q7241815"],["Denny",56.018,-3.907,8300,"GB","Q3778259"],["Monifieth",56.481,-2.82,8110,"GB","Q3179174"],["Lenzie",55.923,-4.153,8070,"GB","Q2967298"],["Thurso",58.596,-3.521,7933,"GB","Q526576"],["Lossiemouth",57.717,-3.283,7870,"GB","Q1012013"],["North Berwick",56.058,-2.717,7840,"GB","Q1012054"],["Dunoon",55.947,-4.923,7830,"GB","Q1020251"],["Cove Bay",57.105,-2.089,7740,"GB","Q5178917"],["Colinton",55.908,-3.25,7637,"GB","Q5145731"],["Banchory",57.055,-2.49,7560,"GB","Q806177"],["Currie",55.896,-3.307,7494,"GB","Q1144879"],["Stepps",55.891,-4.152,7450,"GB","Q7611149"],["Crieff",56.374,-3.843,7430,"GB","Q639666"],["Stewarton",55.68,-4.515,7420,"GB","Q1011948"],["Kirkwall",58.981,-2.96,7420,"GB","Q208329"],["Douglas",56.479,-2.906,7404,"GB","Q5301146"],["Brechin",56.73,-2.655,7400,"GB","Q45848"],["Mastrick",57.156,-2.164,7365,"GB","Q6785612"],["Strathaven",55.68,-4.069,7350,"GB","Q1013550"],["Kilbirnie",55.75,-4.7,7340,"GB","Q1016743"],["Lochgelly",56.128,-3.311,7320,"GB","Q3835992"],["Gorebridge",55.844,-3.05,7160,"GB","Q1009833"],["Rosemount",57.15,-2.118,7111,"GB","Q7368489"],["Wick",58.443,-3.092,7040,"GB","Q1012502"],["Shawlands",55.829,-4.287,7015,"GB","Q7491272"],["Stockbridge",55.959,-3.21,7000,"GB","Q76179Line truncated