News for hackers. Stuff that matters.
Re:Run Clip on iPhone to Search Photos by mazzystar on Tuesday February 07, 2023 @03:40AM (#34690272)
Thank you for liking it. Face recognition involves more models, and about geolocation information, you can actually get latitude and longitude in photos, but converting latitude and longitude to specific cities and neighborhoods requires access to geolocation servers, which will cause the app to have to be networked, which is not what I would like to see.
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.
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.
Re:Run Clip on iPhone to Search Photos by geocar on Tuesday February 07, 2023 @05:47AM (#34691116)
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.
Re:Run Clip on iPhone to Search Photos by tough on Wednesday February 08, 2023 @09:55AM (#34708810)
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.
Re:Run Clip on iPhone to Search Photos by DerWOK on Tuesday February 07, 2023 @06:21AM (#34691320)
For Geo-Location, maybe consider this workflow: User searches City in the iPhone Maps App (by Apple), then clicks "Share" button, then "Copy to Clipboard" - thenpaste this location into your app, you grab Longitude & Latitude from that and let users specify a radius. Bam! Complicated.... But no network needed.
Re:Run Clip on iPhone to Search Photos by netsharc on Tuesday February 07, 2023 @06:58AM (#34691588)
Someone else has commented with a list of cities which could be included offline: https://news.ycombinator.com/item?id=34690693

But your workflow is such a hassle that I doubt many people would do it. A more realistic flow (without the list of places above) would be to show an image of the world map, allow the user to zoom in, and let them drop a pin on the map. They can drop a pin near some pixels labeled Paris, but the app doesn't need to know that it's Paris, it just needs to translate the pixel coordinates of the pin (relative to the image) to geographical coordinates, and look for images close to these coordinates.

Re:Run Clip on iPhone to Search Photos by 4lun on Tuesday February 07, 2023 @02:17PM (#34697720)
Potentially the app could link out to a hosted webpage that allows selecting a location using a decent map and search UI, with network capability (but without requiring it in app)

Then on selecting a location you present a button that then jumps you back into the app via a universal link (passing in lon/lat)

Re:Run Clip on iPhone to Search Photos by shp0ngle on Tuesday February 07, 2023 @06:42AM (#34691468)
If I was you, I would not try to add the geolocation, you won’t match google anyway and it will take you way too much time.

But up to you