3 ms·
Is it a possibility to have some sort of offline database to query against ? Or maybe that would make the app to heavy. Could be a "opt-in" download.
by ankit_mishra 4y ago
Is it a possibility to have some sort of offline database to query against ?
Or maybe that would make the app to heavy. Could be a "opt-in" download.
- mazzystar 4y agoMaybe an offline mapping table + a bit of similarity algorithm can roughly solve this problem, just not too precise for cities.
- geocar 4y agoWhy 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.
- mazzystar 4y agoMaybe you're right, I'll try.
- tough 4y agoMapbox 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?
- mazzystar 4y agoMy 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.