photos_on_a_map (view)

1 row where "date" is on date 2019-09-15 and longitude = "-89.67729166666666" sorted by date descending

View and edit SQL

longitude

  • -89.67729166666666 · 1

ext

date (date)

  • 2019-09-15 · 1
date ▲ latitude longitude sha256 ext popup
2019-09-15T15:36:30+00:00 30.24152 -89.67729166666666 847b6ce3e30394f5485d356528eea16a644e0a2b54d1a7727c03011f8c54b554 heic
{
    "title": "Taken on 2019-09-15T15:36:30+00:00",
    "image": "https://photos.simonwillison.net/i/847b6ce3e30394f5485d356528eea16a644e0a2b54d1a7727c03011f8c54b554.heic?w=400",
    "link": "https://photos.simonwillison.net/i/847b6ce3e30394f5485d356528eea16a644e0a2b54d1a7727c03011f8c54b554.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 25.771ms · About: dogsheep/dogsheep-photos