photos_on_a_map (view)

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

View and edit SQL

longitude

  • -122.44921166666667 · 2

ext

date (date)

date ▲ latitude longitude sha256 ext popup
2018-02-20T23:04:00+00:00 37.74257166666666 -122.44921166666667 fdc3052b1eb0fc7ebf3511145fa1744be8a22de793c74f9d89f98ffca730df5b heic
{
    "title": "Taken on 2018-02-20T23:04:00+00:00",
    "image": "https://photos.simonwillison.net/i/fdc3052b1eb0fc7ebf3511145fa1744be8a22de793c74f9d89f98ffca730df5b.heic?w=400",
    "link": "https://photos.simonwillison.net/i/fdc3052b1eb0fc7ebf3511145fa1744be8a22de793c74f9d89f98ffca730df5b.heic?w=1200"
}
2018-02-20T22:42:22+00:00 37.74255 -122.44921166666667 429b9d26c7410b850f0f3ae97746ff6c389904d37ef4237e49c78b73f497f796 heic
{
    "title": "Taken on 2018-02-20T22:42:22+00:00",
    "image": "https://photos.simonwillison.net/i/429b9d26c7410b850f0f3ae97746ff6c389904d37ef4237e49c78b73f497f796.heic?w=400",
    "link": "https://photos.simonwillison.net/i/429b9d26c7410b850f0f3ae97746ff6c389904d37ef4237e49c78b73f497f796.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 24.245ms · About: dogsheep/dogsheep-photos