photos_on_a_map (view)

2 rows where "date" is on date 2019-08-25 and ext = "heic"

View and edit SQL

ext

  • heic · 2

date (date)

  • 2019-08-25 · 2
date latitude longitude sha256 ext popup
2019-08-25T12:13:59+00:00 48.84311666666667 2.3632866666666668 ec3603bcb38d0cd7d2f90c7ba44de83f2f149c0a36a57cae9a5e7aff638327a8 heic
{
    "title": "Taken on 2019-08-25T12:13:59+00:00",
    "image": "https://photos.simonwillison.net/i/ec3603bcb38d0cd7d2f90c7ba44de83f2f149c0a36a57cae9a5e7aff638327a8.heic?w=400",
    "link": "https://photos.simonwillison.net/i/ec3603bcb38d0cd7d2f90c7ba44de83f2f149c0a36a57cae9a5e7aff638327a8.heic?w=1200"
}
2019-08-25T12:11:16+00:00 48.843205 2.3633866666666665 19c6fb53d4e0d62e743651ee7b4db539f58a7df17fe71dd144eadbe5267108d0 heic
{
    "title": "Taken on 2019-08-25T12:11:16+00:00",
    "image": "https://photos.simonwillison.net/i/19c6fb53d4e0d62e743651ee7b4db539f58a7df17fe71dd144eadbe5267108d0.heic?w=400",
    "link": "https://photos.simonwillison.net/i/19c6fb53d4e0d62e743651ee7b4db539f58a7df17fe71dd144eadbe5267108d0.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 25.919ms · About: dogsheep/dogsheep-photos