photos_on_a_map (view)

2 rows where "date" is on date 2019-09-16 and ext = "heic"

View and edit SQL

ext

  • heic · 2

date (date)

  • 2019-09-16 · 2
date latitude longitude sha256 ext popup
2019-09-16T16:27:24+00:00 37.449821666666665 -122.18592 38c5c9797285ca569d63a524a7a217b562c289e2b8068122e5dd7329348cfe4c heic
{
    "title": "Taken on 2019-09-16T16:27:24+00:00",
    "image": "https://photos.simonwillison.net/i/38c5c9797285ca569d63a524a7a217b562c289e2b8068122e5dd7329348cfe4c.heic?w=400",
    "link": "https://photos.simonwillison.net/i/38c5c9797285ca569d63a524a7a217b562c289e2b8068122e5dd7329348cfe4c.heic?w=1200"
}
2019-09-16T16:26:37+00:00 37.44983333333333 -122.1864 14101f33adc465139279ae9a80118d2b388f4350c9b1b5ed06596282646d000b heic
{
    "title": "Taken on 2019-09-16T16:26:37+00:00",
    "image": "https://photos.simonwillison.net/i/14101f33adc465139279ae9a80118d2b388f4350c9b1b5ed06596282646d000b.heic?w=400",
    "link": "https://photos.simonwillison.net/i/14101f33adc465139279ae9a80118d2b388f4350c9b1b5ed06596282646d000b.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 20.149ms · About: dogsheep/dogsheep-photos