This data as json, CSV (advanced)
date | latitude | longitude | sha256 | ext | popup |
---|---|---|---|---|---|
2018-04-22T00:15:27+00:00 | 37.57915 | -122.3441 | a5e2d73b2ecb3c659734df6f3a73247ee4630cda0e44eade13e964894de7a03e | heic | { "title": "Taken on 2018-04-22T00:15:27+00:00", "image": "https://photos.simonwillison.net/i/a5e2d73b2ecb3c659734df6f3a73247ee4630cda0e44eade13e964894de7a03e.heic?w=400", "link": "https://photos.simonwillison.net/i/a5e2d73b2ecb3c659734df6f3a73247ee4630cda0e44eade13e964894de7a03e.heic?w=1200" } |
2018-04-22T00:10:18+00:00 | 37.57915 | -122.3441 | c51fccdae579f930cf5e5523b5dd56c5e35900718a323b2451014d6c6b01ba42 | heic | { "title": "Taken on 2018-04-22T00:10:18+00:00", "image": "https://photos.simonwillison.net/i/c51fccdae579f930cf5e5523b5dd56c5e35900718a323b2451014d6c6b01ba42.heic?w=400", "link": "https://photos.simonwillison.net/i/c51fccdae579f930cf5e5523b5dd56c5e35900718a323b2451014d6c6b01ba42.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;