photos_on_a_map (view)

1 row where "date" is on date 2018-04-22 and longitude = "-122.34422166666667"

View and edit SQL

longitude

  • -122.34422166666667 · 1

date (date)

  • 2018-04-22 · 1
date latitude longitude sha256 ext popup
2018-04-22T00:13:18+00:00 37.579105 -122.34422166666667 2200c12e3a9702e7af07f66a41157f143b9441d5212bd6622b548c19064e3a6c heic
{
    "title": "Taken on 2018-04-22T00:13:18+00:00",
    "image": "https://photos.simonwillison.net/i/2200c12e3a9702e7af07f66a41157f143b9441d5212bd6622b548c19064e3a6c.heic?w=400",
    "link": "https://photos.simonwillison.net/i/2200c12e3a9702e7af07f66a41157f143b9441d5212bd6622b548c19064e3a6c.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 17.814ms · About: dogsheep/dogsheep-photos