photos_on_a_map (view)

2 rows where "date" is on date 2019-08-02

View and edit SQL

date (date)

  • 2019-08-02 · 2
date latitude longitude sha256 ext popup
2019-08-02T09:58:38+00:00 -12.524263333333334 49.175421666666665 9038a30de690deff661d96a60e74dc4e02c13bdcc932240c32e57c0d92c55a54 heic
{
    "title": "Taken on 2019-08-02T09:58:38+00:00",
    "image": "https://photos.simonwillison.net/i/9038a30de690deff661d96a60e74dc4e02c13bdcc932240c32e57c0d92c55a54.heic?w=400",
    "link": "https://photos.simonwillison.net/i/9038a30de690deff661d96a60e74dc4e02c13bdcc932240c32e57c0d92c55a54.heic?w=1200"
}
2019-08-02T09:31:50+00:00 -12.526836666666666 49.17201166666667 59acef10149934e3af1e1078d07b77cb367d6227ca00cf93d93d7576b5bf2525 heic
{
    "title": "Taken on 2019-08-02T09:31:50+00:00",
    "image": "https://photos.simonwillison.net/i/59acef10149934e3af1e1078d07b77cb367d6227ca00cf93d93d7576b5bf2525.heic?w=400",
    "link": "https://photos.simonwillison.net/i/59acef10149934e3af1e1078d07b77cb367d6227ca00cf93d93d7576b5bf2525.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.923ms · About: dogsheep/dogsheep-photos