photos_on_a_map (view)

3 rows where longitude = "-122.44941666666666" sorted by date descending

View and edit SQL

longitude

  • -122.44941666666666 · 3

ext

date (date)

date ▲ latitude longitude sha256 ext popup
2018-02-20T22:11:34+00:00 37.742175 -122.44941666666666 3645e1accd86e5cb0c56c6f2beea438f257bf8d0e5b60a324cd7ec8eb3e49b7c heic
{
    "title": "Taken on 2018-02-20T22:11:34+00:00",
    "image": "https://photos.simonwillison.net/i/3645e1accd86e5cb0c56c6f2beea438f257bf8d0e5b60a324cd7ec8eb3e49b7c.heic?w=400",
    "link": "https://photos.simonwillison.net/i/3645e1accd86e5cb0c56c6f2beea438f257bf8d0e5b60a324cd7ec8eb3e49b7c.heic?w=1200"
}
2018-02-20T22:10:36+00:00 37.742225 -122.44941666666666 097370f3405ad0e8a22a859ef107130273fd5fe2138128ffd6e7fc18c39fa000 heic
{
    "title": "Taken on 2018-02-20T22:10:36+00:00",
    "image": "https://photos.simonwillison.net/i/097370f3405ad0e8a22a859ef107130273fd5fe2138128ffd6e7fc18c39fa000.heic?w=400",
    "link": "https://photos.simonwillison.net/i/097370f3405ad0e8a22a859ef107130273fd5fe2138128ffd6e7fc18c39fa000.heic?w=1200"
}
2018-02-20T22:10:33+00:00 37.74223666666666 -122.44941666666666 087562510b302c2c3e8095b7e5ed455ff4b178e909ec46bde09d50c8500ec26d heic
{
    "title": "Taken on 2018-02-20T22:10:33+00:00",
    "image": "https://photos.simonwillison.net/i/087562510b302c2c3e8095b7e5ed455ff4b178e909ec46bde09d50c8500ec26d.heic?w=400",
    "link": "https://photos.simonwillison.net/i/087562510b302c2c3e8095b7e5ed455ff4b178e909ec46bde09d50c8500ec26d.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 20.861ms · About: dogsheep/dogsheep-photos