Re:Run Clip on iPhone to Search Photos
by ankit_mishra on Tuesday February 07, 2023 @04:05AM
(#34690431)
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.
[ Parent
| on HN ]
Re:Run Clip on iPhone to Search Photos
by mazzystar on Tuesday February 07, 2023 @04:16AM
(#34690498)
Maybe an offline mapping table + a bit of similarity algorithm can roughly solve this problem, just not too precise for cities.
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.
Re:Run Clip on iPhone to Search Photos
by mazzystar on Tuesday February 07, 2023 @06:18AM
(#34691309)
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?
Re:Run Clip on iPhone to Search Photos
by mazzystar on Wednesday February 08, 2023 @08:49PM
(#34718692)
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.