photos_on_a_map (view)

2 rows where "date" is on date 2017-12-16 and latitude = "51.503303333333335" sorted by sha256

View and edit SQL

latitude

  • 51.503303333333335 · 2

date (date)

  • 2017-12-16 · 2
date latitude longitude sha256 ▼ ext popup
2017-12-16T11:51:14+00:00 51.503303333333335 -0.1321805 57da25cee1c32557167b6d5458ac3ea56f683150c2611d6d8ad6a9b6dbb27276 heic
{
    "title": "Taken on 2017-12-16T11:51:14+00:00",
    "image": "https://photos.simonwillison.net/i/57da25cee1c32557167b6d5458ac3ea56f683150c2611d6d8ad6a9b6dbb27276.heic?w=400",
    "link": "https://photos.simonwillison.net/i/57da25cee1c32557167b6d5458ac3ea56f683150c2611d6d8ad6a9b6dbb27276.heic?w=1200"
}
2017-12-16T11:51:09+00:00 51.503303333333335 -0.1321805 d1f5ff1dc55f467cc316d31897840e7ab50a1894823780b56c36e9ee6bda5c08 heic
{
    "title": "Taken on 2017-12-16T11:51:09+00:00",
    "image": "https://photos.simonwillison.net/i/d1f5ff1dc55f467cc316d31897840e7ab50a1894823780b56c36e9ee6bda5c08.heic?w=400",
    "link": "https://photos.simonwillison.net/i/d1f5ff1dc55f467cc316d31897840e7ab50a1894823780b56c36e9ee6bda5c08.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.676ms · About: dogsheep/dogsheep-photos