|
|
|
|
|
by daviddahl
3846 days ago
|
|
The dataset of all towns in the world with > 1000 inhabitants is bundled into Kloak. The GPS location was originally highly accurate, but we rounded down to 2 decimal places. So if your GPS coordinates match the center of the city (rounded down), a place name can be generated. It basically will place you near the center of the closest town, again, its naively rounded to 2 decimal places. I want to go back to make this code a bit more sophisticated, with more choices for the user. |
|
http://mathworld.wolfram.com/SphericalCode.html
https://en.wikipedia.org/wiki/Tammes_problem