This data as json, CSV (advanced)
date | latitude | longitude | sha256 | ext | popup ▲ |
---|---|---|---|---|---|
2017-09-29T01:17:17+00:00 | 37.77751666666666 | -122.42583333333333 | 7ef1fc100a8feb54edec02b3dda0255d5fd0e8260c015c1b4feeb8be39bcabca | jpeg | { "title": "Taken on 2017-09-29T01:17:17+00:00", "image": "https://photos.simonwillison.net/i/7ef1fc100a8feb54edec02b3dda0255d5fd0e8260c015c1b4feeb8be39bcabca.jpeg?w=400", "link": "https://photos.simonwillison.net/i/7ef1fc100a8feb54edec02b3dda0255d5fd0e8260c015c1b4feeb8be39bcabca.jpeg?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;