photos_on_a_map (view)

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

View and edit SQL

longitude

  • -122.44926333333333 · 2

ext

date (date)

date ▲ latitude longitude sha256 ext popup
2018-02-20T23:15:38+00:00 37.74283833333333 -122.44926333333333 abb62ed287656b13ebdd9963dcb71d17831ccb5501f9523c0bfa2e556e8805c2 heic
{
    "title": "Taken on 2018-02-20T23:15:38+00:00",
    "image": "https://photos.simonwillison.net/i/abb62ed287656b13ebdd9963dcb71d17831ccb5501f9523c0bfa2e556e8805c2.heic?w=400",
    "link": "https://photos.simonwillison.net/i/abb62ed287656b13ebdd9963dcb71d17831ccb5501f9523c0bfa2e556e8805c2.heic?w=1200"
}
2018-02-20T22:56:52+00:00 37.742828333333335 -122.44926333333333 b6dde111630ca1bf56bf3c85f76cbdd0135b5bfe07f635045eaac6cb438c0e8a heic
{
    "title": "Taken on 2018-02-20T22:56:52+00:00",
    "image": "https://photos.simonwillison.net/i/b6dde111630ca1bf56bf3c85f76cbdd0135b5bfe07f635045eaac6cb438c0e8a.heic?w=400",
    "link": "https://photos.simonwillison.net/i/b6dde111630ca1bf56bf3c85f76cbdd0135b5bfe07f635045eaac6cb438c0e8a.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 27.404ms · About: dogsheep/dogsheep-photos