This data as json, CSV (advanced)
date ▲ | latitude | longitude | sha256 | ext | popup |
---|---|---|---|---|---|
2018-02-20T22:54:54+00:00 | 37.742803333333335 | -122.44925 | 6323ea1c6096703eaa318d5c5974adca7b8e1c19285f157536b8b881927c7b6e | heic | { "title": "Taken on 2018-02-20T22:54:54+00:00", "image": "https://photos.simonwillison.net/i/6323ea1c6096703eaa318d5c5974adca7b8e1c19285f157536b8b881927c7b6e.heic?w=400", "link": "https://photos.simonwillison.net/i/6323ea1c6096703eaa318d5c5974adca7b8e1c19285f157536b8b881927c7b6e.heic?w=1200" } |
2018-02-20T22:21:26+00:00 | 37.74257166666666 | -122.44925 | 35466149067766d36bc97080600b0a469758eeab0b3eb1db2faf12a080486102 | heic | { "title": "Taken on 2018-02-20T22:21:26+00:00", "image": "https://photos.simonwillison.net/i/35466149067766d36bc97080600b0a469758eeab0b3eb1db2faf12a080486102.heic?w=400", "link": "https://photos.simonwillison.net/i/35466149067766d36bc97080600b0a469758eeab0b3eb1db2faf12a080486102.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;