photos_on_a_map (view)

2 rows where "date" is on date 2018-04-22 and longitude = "-122.34417833333333"

View and edit SQL

longitude

  • -122.34417833333333 · 2

date (date)

  • 2018-04-22 · 2
date latitude longitude sha256 ext popup
2018-04-22T00:19:03+00:00 37.579258333333335 -122.34417833333333 5a49d99dca4b4f1b4838d83ab1b8544b00c59242fda2d05092208ba0fb0fce77 heic
{
    "title": "Taken on 2018-04-22T00:19:03+00:00",
    "image": "https://photos.simonwillison.net/i/5a49d99dca4b4f1b4838d83ab1b8544b00c59242fda2d05092208ba0fb0fce77.heic?w=400",
    "link": "https://photos.simonwillison.net/i/5a49d99dca4b4f1b4838d83ab1b8544b00c59242fda2d05092208ba0fb0fce77.heic?w=1200"
}
2018-04-22T00:09:26+00:00 37.57923 -122.34417833333333 ee05096b1dc7fa7fd6edc60c359f64e39652dff2b649169295cd2851fd1534f4 heic
{
    "title": "Taken on 2018-04-22T00:09:26+00:00",
    "image": "https://photos.simonwillison.net/i/ee05096b1dc7fa7fd6edc60c359f64e39652dff2b649169295cd2851fd1534f4.heic?w=400",
    "link": "https://photos.simonwillison.net/i/ee05096b1dc7fa7fd6edc60c359f64e39652dff2b649169295cd2851fd1534f4.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 23.137ms · About: dogsheep/dogsheep-photos