This data as json, CSV (advanced)
Suggested facets: date (date)
| date | latitude | longitude | sha256 | ext | popup |
|---|---|---|---|---|---|
| 2016-01-13T20:43:53+00:00 | 37.78062833333333 | -122.41036166666666 | 7fa46682650e464a6bd09bee294607900c198152b680393dc4f3f5666c0db695 | jpeg | {
"title": "Taken on 2016-01-13T20:43:53+00:00",
"image": "https://photos.simonwillison.net/i/7fa46682650e464a6bd09bee294607900c198152b680393dc4f3f5666c0db695.jpeg?w=400",
"link": "https://photos.simonwillison.net/i/7fa46682650e464a6bd09bee294607900c198152b680393dc4f3f5666c0db695.jpeg?w=1200"
} |
| 2016-01-13T20:30:46+00:00 | 37.78168 | -122.411025 | 692e3b73c2d9297f354c7b9827d05cd697fd4b83885747a869b2478ec44632c5 | jpeg | {
"title": "Taken on 2016-01-13T20:30:46+00:00",
"image": "https://photos.simonwillison.net/i/692e3b73c2d9297f354c7b9827d05cd697fd4b83885747a869b2478ec44632c5.jpeg?w=400",
"link": "https://photos.simonwillison.net/i/692e3b73c2d9297f354c7b9827d05cd697fd4b83885747a869b2478ec44632c5.jpeg?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;