This data as json, CSV (advanced)
date | latitude ▲ | longitude | sha256 | ext | popup |
---|---|---|---|---|---|
2018-12-24T01:08:03+00:00 | 45.646233333333335 | -122.65947 | 72dcc3993cdcaf43104031d23c42c5824186fbaa07b9bc5065422be1062b210d | heic | { "title": "Taken on 2018-12-24T01:08:03+00:00", "image": "https://photos.simonwillison.net/i/72dcc3993cdcaf43104031d23c42c5824186fbaa07b9bc5065422be1062b210d.heic?w=400", "link": "https://photos.simonwillison.net/i/72dcc3993cdcaf43104031d23c42c5824186fbaa07b9bc5065422be1062b210d.heic?w=1200" } |
2018-12-24T20:06:03+00:00 | 45.20411333333333 | -123.14530833333333 | 02e54839ec51f00bd8e4eaed08112c24b77cfedad2a2ea6563e421fcada75a44 | heic | { "title": "Taken on 2018-12-24T20:06:03+00:00", "image": "https://photos.simonwillison.net/i/02e54839ec51f00bd8e4eaed08112c24b77cfedad2a2ea6563e421fcada75a44.heic?w=400", "link": "https://photos.simonwillison.net/i/02e54839ec51f00bd8e4eaed08112c24b77cfedad2a2ea6563e421fcada75a44.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;