This data as json, CSV (advanced)
date ▲ | latitude | longitude | sha256 | ext | popup |
---|---|---|---|---|---|
2019-09-14T16:27:56+00:00 | 29.941283333333335 | -90.07913883333333 | 86e8a0932628c6450de3649297ab0295831bb3963b186b262d8ff4bfdf9cfef0 | heic | { "title": "Taken on 2019-09-14T16:27:56+00:00", "image": "https://photos.simonwillison.net/i/86e8a0932628c6450de3649297ab0295831bb3963b186b262d8ff4bfdf9cfef0.heic?w=400", "link": "https://photos.simonwillison.net/i/86e8a0932628c6450de3649297ab0295831bb3963b186b262d8ff4bfdf9cfef0.heic?w=1200" } |
2019-09-14T16:22:47+00:00 | 29.940883333333332 | -90.07913883333333 | febc9309036eecd044283deed4492854256af6ad195f9c71165e60928633e57f | heic | { "title": "Taken on 2019-09-14T16:22:47+00:00", "image": "https://photos.simonwillison.net/i/febc9309036eecd044283deed4492854256af6ad195f9c71165e60928633e57f.heic?w=400", "link": "https://photos.simonwillison.net/i/febc9309036eecd044283deed4492854256af6ad195f9c71165e60928633e57f.heic?w=1200" } |
JSON shape: default, array, newline-delimited
CREATE VIEW photos_on_a_map AS select date, latitude, longitude, apple_photos.sha256, uploads.ext, json_object( 'title', 'Taken on ' || date, 'image', 'https://photos.simonwillison.net/i/' || uploads.sha256 || '.' || uploads.ext || '?w=400', 'link', 'https://photos.simonwillison.net/i/' || uploads.sha256 || '.' || uploads.ext || '?w=1200' ) as popup from apple_photos join uploads on apple_photos.sha256 = uploads.sha256 where latitude is not null order by date desc;