This data as json, CSV (advanced)
date | latitude | longitude | sha256 | ext | popup |
---|---|---|---|---|---|
2018-04-21T23:55:29+00:00 | 37.579053333333334 | -122.34420833333333 | 798436ad6175c55c8785bfbc10c8ffe60913b521a52312735f138f37e3cb4d81 | heic | { "title": "Taken on 2018-04-21T23:55:29+00:00", "image": "https://photos.simonwillison.net/i/798436ad6175c55c8785bfbc10c8ffe60913b521a52312735f138f37e3cb4d81.heic?w=400", "link": "https://photos.simonwillison.net/i/798436ad6175c55c8785bfbc10c8ffe60913b521a52312735f138f37e3cb4d81.heic?w=1200" } |
2018-04-21T23:55:28+00:00 | 37.579053333333334 | -122.34420833333333 | 68b5459d668a8a495c751e177b6c405f27b6e5506502fdd305a6eb0950230854 | heic | { "title": "Taken on 2018-04-21T23:55:28+00:00", "image": "https://photos.simonwillison.net/i/68b5459d668a8a495c751e177b6c405f27b6e5506502fdd305a6eb0950230854.heic?w=400", "link": "https://photos.simonwillison.net/i/68b5459d668a8a495c751e177b6c405f27b6e5506502fdd305a6eb0950230854.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;