photos_on_a_map (view)

1 row where "date" is on date 2016-04-19 and latitude = "37.86320833333333" sorted by popup

View and edit SQL

latitude

  • 37.86320833333333 · 1

ext

date (date)

  • 2016-04-19 · 1
date latitude longitude sha256 ext popup ▼
2016-04-19T22:24:47+00:00 37.86320833333333 -122.49472 44458ddd988ba5866c6a1e5db026a57add085c80d64a6f0f52fffacd816e52ad jpeg
{
    "title": "Taken on 2016-04-19T22:24:47+00:00",
    "image": "https://photos.simonwillison.net/i/44458ddd988ba5866c6a1e5db026a57add085c80d64a6f0f52fffacd816e52ad.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/44458ddd988ba5866c6a1e5db026a57add085c80d64a6f0f52fffacd816e52ad.jpeg?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 18.727ms · About: dogsheep/dogsheep-photos