photos_on_a_map (view)

1 row where "date" is on date 2019-09-14 and longitude = "-90.07916383333334"

View and edit SQL

longitude

  • -90.07916383333334 · 1

date (date)

  • 2019-09-14 · 1
date latitude longitude sha256 ext popup
2019-09-14T16:34:54+00:00 29.94091166666667 -90.07916383333334 c37b828329e32f8451e9fedf83c1a8cba93ea3978257456dafecb3ab35d011dd heic
{
    "title": "Taken on 2019-09-14T16:34:54+00:00",
    "image": "https://photos.simonwillison.net/i/c37b828329e32f8451e9fedf83c1a8cba93ea3978257456dafecb3ab35d011dd.heic?w=400",
    "link": "https://photos.simonwillison.net/i/c37b828329e32f8451e9fedf83c1a8cba93ea3978257456dafecb3ab35d011dd.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 11.408ms · About: dogsheep/dogsheep-photos