photos_on_a_map (view)

2 rows where "date" is on date 2018-04-22 and longitude = "-122.34417"

View and edit SQL

longitude

  • -122.34417 · 2

date (date)

  • 2018-04-22 · 2
date latitude longitude sha256 ext popup
2018-04-22T00:11:12+00:00 37.57926666666667 -122.34417 3b435a93ced7320d53ff8a654508641529d82949253df7256c3baeb6a919385d heic
{
    "title": "Taken on 2018-04-22T00:11:12+00:00",
    "image": "https://photos.simonwillison.net/i/3b435a93ced7320d53ff8a654508641529d82949253df7256c3baeb6a919385d.heic?w=400",
    "link": "https://photos.simonwillison.net/i/3b435a93ced7320d53ff8a654508641529d82949253df7256c3baeb6a919385d.heic?w=1200"
}
2018-04-22T00:05:41+00:00 37.57927166666666 -122.34417 7f541fc393d29c06197b005642f20cbc519a3b2eedb36eb33aeedb64fec2a9a4 heic
{
    "title": "Taken on 2018-04-22T00:05:41+00:00",
    "image": "https://photos.simonwillison.net/i/7f541fc393d29c06197b005642f20cbc519a3b2eedb36eb33aeedb64fec2a9a4.heic?w=400",
    "link": "https://photos.simonwillison.net/i/7f541fc393d29c06197b005642f20cbc519a3b2eedb36eb33aeedb64fec2a9a4.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.407ms · About: dogsheep/dogsheep-photos