photos_on_a_map (view)

2 rows where "date" is on date 2019-09-15 and longitude = "-89.66815833333334" sorted by date descending

View and edit SQL

longitude

  • -89.66815833333334 · 2

ext

date (date)

  • 2019-09-15 · 2
date ▲ latitude longitude sha256 ext popup
2019-09-15T14:38:47+00:00 30.234196666666666 -89.66815833333334 d6f260ebe038a495c75f0bbc1c00606f894676a9ce2098c3d5733530dc0e8ec2 heic
{
    "title": "Taken on 2019-09-15T14:38:47+00:00",
    "image": "https://photos.simonwillison.net/i/d6f260ebe038a495c75f0bbc1c00606f894676a9ce2098c3d5733530dc0e8ec2.heic?w=400",
    "link": "https://photos.simonwillison.net/i/d6f260ebe038a495c75f0bbc1c00606f894676a9ce2098c3d5733530dc0e8ec2.heic?w=1200"
}
2019-09-15T14:37:30+00:00 30.234196666666666 -89.66815833333334 7104ebd9287ca4e5d2556496eafd7d34ada9901997cbff1dbdd7c33281d65566 heic
{
    "title": "Taken on 2019-09-15T14:37:30+00:00",
    "image": "https://photos.simonwillison.net/i/7104ebd9287ca4e5d2556496eafd7d34ada9901997cbff1dbdd7c33281d65566.heic?w=400",
    "link": "https://photos.simonwillison.net/i/7104ebd9287ca4e5d2556496eafd7d34ada9901997cbff1dbdd7c33281d65566.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 19.389ms · About: dogsheep/dogsheep-photos