photos_on_a_map (view)

2 rows where "date" is on date 2020-01-14 and ext = "heic"

View and edit SQL

ext

  • heic · 2

date (date)

  • 2020-01-14 · 2
date latitude longitude sha256 ext popup
2020-01-14T05:40:24+00:00 37.45085333 -122.18125833000002 38ed150fe0aaf4dfded5f144abecab5de247760a6bb2d41526b2dd8de0b11397 heic
{
    "title": "Taken on 2020-01-14T05:40:24+00:00",
    "image": "https://photos.simonwillison.net/i/38ed150fe0aaf4dfded5f144abecab5de247760a6bb2d41526b2dd8de0b11397.heic?w=400",
    "link": "https://photos.simonwillison.net/i/38ed150fe0aaf4dfded5f144abecab5de247760a6bb2d41526b2dd8de0b11397.heic?w=1200"
}
2020-01-14T05:38:46+00:00 37.450846670000004 -122.18125333 73491bc0d6fe19177e620c11f66a2e70f417d5ed17210c64804f5362803946f4 heic
{
    "title": "Taken on 2020-01-14T05:38:46+00:00",
    "image": "https://photos.simonwillison.net/i/73491bc0d6fe19177e620c11f66a2e70f417d5ed17210c64804f5362803946f4.heic?w=400",
    "link": "https://photos.simonwillison.net/i/73491bc0d6fe19177e620c11f66a2e70f417d5ed17210c64804f5362803946f4.heic?w=1200"
}

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

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;
Powered by Datasette · Query took 26.024ms · About: dogsheep/dogsheep-photos