photos_on_a_map (view)

2 rows where "date" is on date 2019-12-28 and ext = "heic"

View and edit SQL

ext

  • heic · 2

date (date)

  • 2019-12-28 · 2
date latitude longitude sha256 ext popup
2019-12-28T10:55:13+00:00 50.697155 -3.19187 faec04a4c5576d2de8af17460c22c79fd1926e889e3d0073ea188994c82507ac heic
{
    "title": "Taken on 2019-12-28T10:55:13+00:00",
    "image": "https://photos.simonwillison.net/i/faec04a4c5576d2de8af17460c22c79fd1926e889e3d0073ea188994c82507ac.heic?w=400",
    "link": "https://photos.simonwillison.net/i/faec04a4c5576d2de8af17460c22c79fd1926e889e3d0073ea188994c82507ac.heic?w=1200"
}
2019-12-28T10:29:00+00:00 50.69708833 -3.18944667 041612eaccc0c5724b4613995a12106e7dd7e1f68555c7db4924523c8d6bcde1 heic
{
    "title": "Taken on 2019-12-28T10:29:00+00:00",
    "image": "https://photos.simonwillison.net/i/041612eaccc0c5724b4613995a12106e7dd7e1f68555c7db4924523c8d6bcde1.heic?w=400",
    "link": "https://photos.simonwillison.net/i/041612eaccc0c5724b4613995a12106e7dd7e1f68555c7db4924523c8d6bcde1.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 28.276ms · About: dogsheep/dogsheep-photos