photos_on_a_map (view)

2 rows where longitude = "-122.44946333333333" sorted by date descending

View and edit SQL

longitude

  • -122.44946333333333 · 2

ext

date (date)

date ▲ latitude longitude sha256 ext popup
2018-02-20T22:32:43+00:00 37.742375 -122.44946333333333 f4024447b47d525ee5f7931f3655f798d5555ebaaca068afd123b8304986ac36 heic
{
    "title": "Taken on 2018-02-20T22:32:43+00:00",
    "image": "https://photos.simonwillison.net/i/f4024447b47d525ee5f7931f3655f798d5555ebaaca068afd123b8304986ac36.heic?w=400",
    "link": "https://photos.simonwillison.net/i/f4024447b47d525ee5f7931f3655f798d5555ebaaca068afd123b8304986ac36.heic?w=1200"
}
2018-02-20T22:12:10+00:00 37.74223 -122.44946333333333 578272a6bf16f512efefb8f0573daff8d85429f3406d9d966821abe9008e765f heic
{
    "title": "Taken on 2018-02-20T22:12:10+00:00",
    "image": "https://photos.simonwillison.net/i/578272a6bf16f512efefb8f0573daff8d85429f3406d9d966821abe9008e765f.heic?w=400",
    "link": "https://photos.simonwillison.net/i/578272a6bf16f512efefb8f0573daff8d85429f3406d9d966821abe9008e765f.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 21.246ms · About: dogsheep/dogsheep-photos