Open OldhamMade opened 11 years ago
The problem with this is that 70% of the random locations are over open water, and 90% of the rest probably have poor quality imagery, or are completely boring. So you need to do a random location that's interesting, which needs a dataset to work from. I'm open to input on how to do this, but it's not something I've got planned myself.
I'm not sure of the underlying architecture, but would it be possible to maybe supply a random city name (or point of interest, eg. "Loch Ness", "JFK Airport", "Colosseum, Rome") to the mapping backend? Or even a user-supplied list in preferences, one entry per line?
Yep, that very sensible. I'm happy to accept a pull request to do this, but don't have time to do it myself right now.
I would be open to working on something like this with predefined PoI if you aren't already @OldhamMade ?
@cpiggott it's not something I have capacity for at the moment, so feel free! :+1:
Thanks for letting me know @OldhamMade
Time to clone and start building.
Would it be possible to get a list of location (places) from Apple Photos/PhotoKit at specific zoom level and choose randomly from that?
This isn't the official way of getting the coordinates from Apple Photos, but using SQL
SELECT DISTINCT
zlatitude,
zlongitude
FROM
zgenericasset
WHERE
zlatitude AND zlongitude IS NOT "-180.0" ;
for example:
/usr/bin/sqlite3 -csv \
~/Pictures/*.photoslibrary/database/Photos.sqlite \
'SELECT DISTINCT zlatitude,zlongitude FROM zgenericasset WHERE zlatitude AND zlongitude IS NOT "-180.0" ;'
should give a list of places the user have been.
If no current location information is available, have an option to show a random location.