photos_on_a_map (view)

2 rows where "date" is on date 2018-05-02 sorted by longitude

View and edit SQL

date (date)

  • 2018-05-02 · 2
date latitude longitude ▼ sha256 ext popup
2018-05-02T18:32:43+00:00 8.952611666666666 -79.54985833333333 2e7f10e1da4bad3df23e4d39e5d2b80cefd855aaa6fabb9f56b5f6dbcc27bc01 heic
{
    "title": "Taken on 2018-05-02T18:32:43+00:00",
    "image": "https://photos.simonwillison.net/i/2e7f10e1da4bad3df23e4d39e5d2b80cefd855aaa6fabb9f56b5f6dbcc27bc01.heic?w=400",
    "link": "https://photos.simonwillison.net/i/2e7f10e1da4bad3df23e4d39e5d2b80cefd855aaa6fabb9f56b5f6dbcc27bc01.heic?w=1200"
}
2018-05-02T17:33:31+00:00 8.957903333333334 -79.54948333333333 65be772502f23ba0a65bf6e798f1bf97c0d73cae8d2dd15759873be176e96a29 heic
{
    "title": "Taken on 2018-05-02T17:33:31+00:00",
    "image": "https://photos.simonwillison.net/i/65be772502f23ba0a65bf6e798f1bf97c0d73cae8d2dd15759873be176e96a29.heic?w=400",
    "link": "https://photos.simonwillison.net/i/65be772502f23ba0a65bf6e798f1bf97c0d73cae8d2dd15759873be176e96a29.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 25.082ms · About: dogsheep/dogsheep-photos