photos_on_a_map (view)

2 rows where "date" is on date 2016-06-26

View and edit SQL

date (date)

  • 2016-06-26 · 2
date latitude longitude sha256 ext popup
2016-06-26T03:00:36+00:00 37.784641666666666 -122.43603666666667 63ecdd738ea57a07688300501485b22be6b193e852f6af7404295da8e5a6bcee jpeg
{
    "title": "Taken on 2016-06-26T03:00:36+00:00",
    "image": "https://photos.simonwillison.net/i/63ecdd738ea57a07688300501485b22be6b193e852f6af7404295da8e5a6bcee.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/63ecdd738ea57a07688300501485b22be6b193e852f6af7404295da8e5a6bcee.jpeg?w=1200"
}
2016-06-26T03:00:34+00:00 37.784595 -122.43608833333333 c9364c1faae70f2d66c2e6511d612a75cf53d3a5c06da311206ac8eff3b7eab9 jpeg
{
    "title": "Taken on 2016-06-26T03:00:34+00:00",
    "image": "https://photos.simonwillison.net/i/c9364c1faae70f2d66c2e6511d612a75cf53d3a5c06da311206ac8eff3b7eab9.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/c9364c1faae70f2d66c2e6511d612a75cf53d3a5c06da311206ac8eff3b7eab9.jpeg?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 17.168ms · About: dogsheep/dogsheep-photos