Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fallback to random choice #23

Open
OldhamMade opened this issue Jul 4, 2013 · 8 comments
Open

Fallback to random choice #23

OldhamMade opened this issue Jul 4, 2013 · 8 comments

Comments

@OldhamMade
Copy link

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

@tomtaylor
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link

cpiggott commented Oct 5, 2015

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

@OldhamMade
Copy link
Author

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

@cpiggott
Copy link

cpiggott commented Oct 7, 2015

Thanks for letting me know @OldhamMade

Time to clone and start building.

@aslakr
Copy link

aslakr commented Jun 5, 2018

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
Copy link

aslakr commented Nov 26, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants