This data as json, CSV (advanced)
date | latitude | longitude | sha256 | ext | popup ▼ |
---|---|---|---|---|---|
2018-03-25T23:57:33+00:00 | 37.73271166666667 | -122.46839166666666 | 978eaabc0e123d079004bd4c698fc270eb2f9809bede347ae862d7c1cebe68fd | heic | { "title": "Taken on 2018-03-25T23:57:33+00:00", "image": "https://photos.simonwillison.net/i/978eaabc0e123d079004bd4c698fc270eb2f9809bede347ae862d7c1cebe68fd.heic?w=400", "link": "https://photos.simonwillison.net/i/978eaabc0e123d079004bd4c698fc270eb2f9809bede347ae862d7c1cebe68fd.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;