photos_on_a_map (view)

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

View and edit SQL

ext

  • heic · 2

date (date)

  • 2019-12-17 · 2
date latitude longitude sha256 ext popup
2019-12-17T10:05:40+00:00 51.52467832999999 -0.11347499999999999 51f4b1c7d3691bd32170d7f1f343c25e4ce687a3474675501e5295fb8de1e233 heic
{
    "title": "Taken on 2019-12-17T10:05:40+00:00",
    "image": "https://photos.simonwillison.net/i/51f4b1c7d3691bd32170d7f1f343c25e4ce687a3474675501e5295fb8de1e233.heic?w=400",
    "link": "https://photos.simonwillison.net/i/51f4b1c7d3691bd32170d7f1f343c25e4ce687a3474675501e5295fb8de1e233.heic?w=1200"
}
2019-12-17T09:42:50+00:00 51.52411667 -0.11119167 b2d13d18e9e15e0e46a652a11638f694266743089b04ae8e1ceec144f9d261f3 heic
{
    "title": "Taken on 2019-12-17T09:42:50+00:00",
    "image": "https://photos.simonwillison.net/i/b2d13d18e9e15e0e46a652a11638f694266743089b04ae8e1ceec144f9d261f3.heic?w=400",
    "link": "https://photos.simonwillison.net/i/b2d13d18e9e15e0e46a652a11638f694266743089b04ae8e1ceec144f9d261f3.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 11.949ms · About: dogsheep/dogsheep-photos