This data as json, CSV (advanced)
date (date) ✖
date | latitude | longitude | sha256 ▼ | ext | popup |
---|---|---|---|---|---|
2018-02-20T23:05:22+00:00 | 37.742808333333336 | -122.449255 | 1410392329d163954b764fbf466079c543add302f7fccd5eb9158c132ca093d4 | heic | { "title": "Taken on 2018-02-20T23:05:22+00:00", "image": "https://photos.simonwillison.net/i/1410392329d163954b764fbf466079c543add302f7fccd5eb9158c132ca093d4.heic?w=400", "link": "https://photos.simonwillison.net/i/1410392329d163954b764fbf466079c543add302f7fccd5eb9158c132ca093d4.heic?w=1200" } |
2018-02-20T23:06:21+00:00 | 37.742855 | -122.449255 | 5ec4b87f2c842214273f9d643431650b913280ae908cd0216cbc8b60dae33646 | heic | { "title": "Taken on 2018-02-20T23:06:21+00:00", "image": "https://photos.simonwillison.net/i/5ec4b87f2c842214273f9d643431650b913280ae908cd0216cbc8b60dae33646.heic?w=400", "link": "https://photos.simonwillison.net/i/5ec4b87f2c842214273f9d643431650b913280ae908cd0216cbc8b60dae33646.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;