photos_on_a_map (view)

2 rows where longitude = "-122.44950833333333" sorted by date descending

View and edit SQL

longitude

  • -122.44950833333333 · 2

ext

date (date)

date ▲ latitude longitude sha256 ext popup
2018-02-20T22:20:25+00:00 37.74230333333333 -122.44950833333333 1c5fb73aec6f582cb0e1c77bd4629a79bbc1ef00e290c098573a52258713c1f3 heic
{
    "title": "Taken on 2018-02-20T22:20:25+00:00",
    "image": "https://photos.simonwillison.net/i/1c5fb73aec6f582cb0e1c77bd4629a79bbc1ef00e290c098573a52258713c1f3.heic?w=400",
    "link": "https://photos.simonwillison.net/i/1c5fb73aec6f582cb0e1c77bd4629a79bbc1ef00e290c098573a52258713c1f3.heic?w=1200"
}
2018-02-20T22:05:32+00:00 37.74213833333334 -122.44950833333333 0d505ae16037d83713dca21dc08b9f62bea35ec40c1b0187b3a5a89453af6bfe heic
{
    "title": "Taken on 2018-02-20T22:05:32+00:00",
    "image": "https://photos.simonwillison.net/i/0d505ae16037d83713dca21dc08b9f62bea35ec40c1b0187b3a5a89453af6bfe.heic?w=400",
    "link": "https://photos.simonwillison.net/i/0d505ae16037d83713dca21dc08b9f62bea35ec40c1b0187b3a5a89453af6bfe.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 28.486ms · About: dogsheep/dogsheep-photos