photos_on_a_map (view)

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

View and edit SQL

ext

date (date)

longitude

  • -122.46450833333333 · 2
date ▲ latitude longitude sha256 ext popup
2017-11-05T23:06:58+00:00 37.76914166666667 -122.46450833333333 a981be272530aba690ff4d6e292c3dbfeb1fee4c9fcca39346043012cf486e49 heic
{
    "title": "Taken on 2017-11-05T23:06:58+00:00",
    "image": "https://photos.simonwillison.net/i/a981be272530aba690ff4d6e292c3dbfeb1fee4c9fcca39346043012cf486e49.heic?w=400",
    "link": "https://photos.simonwillison.net/i/a981be272530aba690ff4d6e292c3dbfeb1fee4c9fcca39346043012cf486e49.heic?w=1200"
}
2017-03-31T00:48:54+00:00 37.7692 -122.46450833333333 fe7c5489ffa8c070183fe2c559c00b6d5880a6b9a9c53f807962166ec96c4375 jpeg
{
    "title": "Taken on 2017-03-31T00:48:54+00:00",
    "image": "https://photos.simonwillison.net/i/fe7c5489ffa8c070183fe2c559c00b6d5880a6b9a9c53f807962166ec96c4375.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/fe7c5489ffa8c070183fe2c559c00b6d5880a6b9a9c53f807962166ec96c4375.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 18.003ms · About: dogsheep/dogsheep-photos