photos_on_a_map (view)

1 row where "date" is on date 2017-12-16 and latitude = "51.50340333333333" sorted by sha256

View and edit SQL

latitude

  • 51.50340333333333 · 1

date (date)

  • 2017-12-16 · 1
date latitude longitude sha256 ▼ ext popup
2017-12-16T11:52:13+00:00 51.50340333333333 -0.13203616666666668 bfe920659a1e209114e738c58fcc9e1df8cdd1eaed6ac7af4721f05865ba8935 heic
{
    "title": "Taken on 2017-12-16T11:52:13+00:00",
    "image": "https://photos.simonwillison.net/i/bfe920659a1e209114e738c58fcc9e1df8cdd1eaed6ac7af4721f05865ba8935.heic?w=400",
    "link": "https://photos.simonwillison.net/i/bfe920659a1e209114e738c58fcc9e1df8cdd1eaed6ac7af4721f05865ba8935.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 27.902ms · About: dogsheep/dogsheep-photos