photos_on_a_map (view)

3 rows where "date" is on date 2018-05-18

View and edit SQL

date (date)

  • 2018-05-18 · 3
date latitude longitude sha256 ext popup
2018-05-18T20:39:03+00:00 37.04161116666667 -122.07271666666666 d4d2ad853a4bbb3b4ffd93c582b6567943b3edbc0daf7400754740b61b09a755 heic
{
    "title": "Taken on 2018-05-18T20:39:03+00:00",
    "image": "https://photos.simonwillison.net/i/d4d2ad853a4bbb3b4ffd93c582b6567943b3edbc0daf7400754740b61b09a755.heic?w=400",
    "link": "https://photos.simonwillison.net/i/d4d2ad853a4bbb3b4ffd93c582b6567943b3edbc0daf7400754740b61b09a755.heic?w=1200"
}
2018-05-18T19:48:16+00:00 37.041466666666665 -122.07261666666666 13d35a66a9899bc4c0bcd7ddcefca2e1463713bf1eab69f358debaa67cce9316 heic
{
    "title": "Taken on 2018-05-18T19:48:16+00:00",
    "image": "https://photos.simonwillison.net/i/13d35a66a9899bc4c0bcd7ddcefca2e1463713bf1eab69f358debaa67cce9316.heic?w=400",
    "link": "https://photos.simonwillison.net/i/13d35a66a9899bc4c0bcd7ddcefca2e1463713bf1eab69f358debaa67cce9316.heic?w=1200"
}
2018-05-18T19:45:49+00:00 37.0415695 -122.0726305 14efd697b9572b24b1853d1a3effab60609c0fcb477ad4739e85194c32afe8ba heic
{
    "title": "Taken on 2018-05-18T19:45:49+00:00",
    "image": "https://photos.simonwillison.net/i/14efd697b9572b24b1853d1a3effab60609c0fcb477ad4739e85194c32afe8ba.heic?w=400",
    "link": "https://photos.simonwillison.net/i/14efd697b9572b24b1853d1a3effab60609c0fcb477ad4739e85194c32afe8ba.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.419ms · About: dogsheep/dogsheep-photos