photos_on_a_map (view)

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

View and edit SQL

longitude

  • -122.44931666666666 · 2

ext

date (date)

date ▲ latitude longitude sha256 ext popup
2018-02-20T23:13:01+00:00 37.74267 -122.44931666666666 787c5bc73010b0a6c630900e95ca3a8921ad9104dec5cd2fe647510660e7f5d7 heic
{
    "title": "Taken on 2018-02-20T23:13:01+00:00",
    "image": "https://photos.simonwillison.net/i/787c5bc73010b0a6c630900e95ca3a8921ad9104dec5cd2fe647510660e7f5d7.heic?w=400",
    "link": "https://photos.simonwillison.net/i/787c5bc73010b0a6c630900e95ca3a8921ad9104dec5cd2fe647510660e7f5d7.heic?w=1200"
}
2018-02-20T22:58:48+00:00 37.74221166666667 -122.44931666666666 8e7c781f6a3025039c94cf032dd6a4bdfa9b9640f2fa9549f4ece6560befb592 heic
{
    "title": "Taken on 2018-02-20T22:58:48+00:00",
    "image": "https://photos.simonwillison.net/i/8e7c781f6a3025039c94cf032dd6a4bdfa9b9640f2fa9549f4ece6560befb592.heic?w=400",
    "link": "https://photos.simonwillison.net/i/8e7c781f6a3025039c94cf032dd6a4bdfa9b9640f2fa9549f4ece6560befb592.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 15.637ms · About: dogsheep/dogsheep-photos