photos_on_a_map (view)

1 row where "date" is on date 2016-03-21 and ext = "jpeg" sorted by latitude

View and edit SQL

ext

  • jpeg · 1

date (date)

  • 2016-03-21 · 1
date latitude ▼ longitude sha256 ext popup
2016-03-21T00:20:29+00:00 37.80468333333334 -122.47161166666666 3cb22fc3dc3413773a9a2d5a54948c5ffaafd400b09b6c327ff29360ad0d498d jpeg
{
    "title": "Taken on 2016-03-21T00:20:29+00:00",
    "image": "https://photos.simonwillison.net/i/3cb22fc3dc3413773a9a2d5a54948c5ffaafd400b09b6c327ff29360ad0d498d.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/3cb22fc3dc3413773a9a2d5a54948c5ffaafd400b09b6c327ff29360ad0d498d.jpeg?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 22.705ms · About: dogsheep/dogsheep-photos