photos_on_a_map (view)

3 rows where "date" is on date 2017-10-21 sorted by date descending

View and edit SQL

ext

date (date)

  • 2017-10-21 · 3
date ▲ latitude longitude sha256 ext popup
2017-10-21T19:31:24+00:00 37.77567166666667 -122.51278666666667 4b7a039dc64647efadfb959fdf8fedc82c753e590a5dc5f3a0caebc150706b1b jpeg
{
    "title": "Taken on 2017-10-21T19:31:24+00:00",
    "image": "https://photos.simonwillison.net/i/4b7a039dc64647efadfb959fdf8fedc82c753e590a5dc5f3a0caebc150706b1b.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/4b7a039dc64647efadfb959fdf8fedc82c753e590a5dc5f3a0caebc150706b1b.jpeg?w=1200"
}
2017-10-21T18:11:34+00:00 37.77535 -122.51298666666666 00485aa2f328e85a25275dbdbf97af63c36e869f012302206b4c8d1f1e60c26d jpeg
{
    "title": "Taken on 2017-10-21T18:11:34+00:00",
    "image": "https://photos.simonwillison.net/i/00485aa2f328e85a25275dbdbf97af63c36e869f012302206b4c8d1f1e60c26d.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/00485aa2f328e85a25275dbdbf97af63c36e869f012302206b4c8d1f1e60c26d.jpeg?w=1200"
}
2017-10-21T18:11:33+00:00 37.77533666666667 -122.51297833333334 5dbba9e4d6c335f966573806fbdc841ee4fa917e1b13427e1bb6a5ff61420c44 jpeg
{
    "title": "Taken on 2017-10-21T18:11:33+00:00",
    "image": "https://photos.simonwillison.net/i/5dbba9e4d6c335f966573806fbdc841ee4fa917e1b13427e1bb6a5ff61420c44.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/5dbba9e4d6c335f966573806fbdc841ee4fa917e1b13427e1bb6a5ff61420c44.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 14.903ms · About: dogsheep/dogsheep-photos