tomtaylor / satellite-eyes

Mac OS X app to automatically set your desktop wallpaper to the satellite view overhead.
http://satelliteeyes.tomtaylor.co.uk
Other
667 stars 61 forks source link

Fallback to random choice #23

Open OldhamMade opened 11 years ago

OldhamMade commented 11 years ago

If no current location information is available, have an option to show a random location.

tomtaylor commented 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.

OldhamMade commented 11 years ago

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?

tomtaylor commented 11 years ago

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.

cpiggott commented 9 years ago

I would be open to working on something like this with predefined PoI if you aren't already @OldhamMade ?

OldhamMade commented 9 years ago

@cpiggott it's not something I have capacity for at the moment, so feel free! :+1:

cpiggott commented 9 years ago

Thanks for letting me know @OldhamMade

Time to clone and start building.

aslakr commented 6 years ago

Would it be possible to get a list of location (places) from Apple Photos/PhotoKit at specific zoom level and choose randomly from that?

aslakr commented 4 years ago

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.