Hacker News new | ask | show | jobs
by mazzystar 1225 days ago
Maybe an offline mapping table + a bit of similarity algorithm can roughly solve this problem, just not too precise for cities.
1 comments

Why not? How many cities do you think there are?

Including a dump of just lat/lon/rad->city from openstreetmap probably kilobytes. Including towns and features might be low megabytes.

Maybe you're right, I'll try.
Mapbox added offline map support a few years back on their SDKs, Found a couple medium articles on it, but no code to share. Wondering if there might be any mapbox FOSS replacements that offer this?
My current idea is probably: store the latitude and longitude of major cities in the world in a txt file, load it, and then estimate the distance based on the difference between them and the current photo, not sure about the space taken and the time consumed.