photos_on_a_map (view)

2 rows where "date" is on date 2018-11-26 sorted by sha256

View and edit SQL

date (date)

  • 2018-11-26 · 2
date latitude longitude sha256 ▼ ext popup
2018-11-26T23:46:00+00:00 37.767125 -122.46747 0daddeb8eb5e2b05b1b21bc51bf14355201de8303222502595c716f8e52b47fd heic
{
    "title": "Taken on 2018-11-26T23:46:00+00:00",
    "image": "https://photos.simonwillison.net/i/0daddeb8eb5e2b05b1b21bc51bf14355201de8303222502595c716f8e52b47fd.heic?w=400",
    "link": "https://photos.simonwillison.net/i/0daddeb8eb5e2b05b1b21bc51bf14355201de8303222502595c716f8e52b47fd.heic?w=1200"
}
2018-11-26T23:47:36+00:00 37.7672 -122.46752166666667 c8f40ecddd5157c98a12110e1a9e11a97b72940d1ba4555f73eb17d229559031 heic
{
    "title": "Taken on 2018-11-26T23:47:36+00:00",
    "image": "https://photos.simonwillison.net/i/c8f40ecddd5157c98a12110e1a9e11a97b72940d1ba4555f73eb17d229559031.heic?w=400",
    "link": "https://photos.simonwillison.net/i/c8f40ecddd5157c98a12110e1a9e11a97b72940d1ba4555f73eb17d229559031.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 15.275ms · About: dogsheep/dogsheep-photos