photos_on_a_map (view)

2 rows where "date" is on date 2018-04-21 and longitude = "-122.3442" sorted by latitude

View and edit SQL

longitude

  • -122.3442 · 2

ext

date (date)

  • 2018-04-21 · 2
date latitude ▼ longitude sha256 ext popup
2018-04-21T23:55:53+00:00 37.579258333333335 -122.3442 b6f0f6ee850459ec2a1cfdd50429c601d1d0ef426d99844c14e8b688b157609e heic
{
    "title": "Taken on 2018-04-21T23:55:53+00:00",
    "image": "https://photos.simonwillison.net/i/b6f0f6ee850459ec2a1cfdd50429c601d1d0ef426d99844c14e8b688b157609e.heic?w=400",
    "link": "https://photos.simonwillison.net/i/b6f0f6ee850459ec2a1cfdd50429c601d1d0ef426d99844c14e8b688b157609e.heic?w=1200"
}
2018-04-21T23:55:50+00:00 37.57926666666667 -122.3442 8d0760a255defeab12023c2ad8704cab6b5bd9d20c69bd325ea242a6b22402a9 heic
{
    "title": "Taken on 2018-04-21T23:55:50+00:00",
    "image": "https://photos.simonwillison.net/i/8d0760a255defeab12023c2ad8704cab6b5bd9d20c69bd325ea242a6b22402a9.heic?w=400",
    "link": "https://photos.simonwillison.net/i/8d0760a255defeab12023c2ad8704cab6b5bd9d20c69bd325ea242a6b22402a9.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 24.75ms · About: dogsheep/dogsheep-photos