photos_on_a_map (view)

1 row where "date" is on date 2016-04-17 and ext = "jpeg" sorted by latitude

View and edit SQL

ext

  • jpeg · 1

date (date)

  • 2016-04-17 · 1
date latitude ▼ longitude sha256 ext popup
2016-04-17T20:01:45+00:00 37.779955 -122.41871666666667 365135c4f3997964b978de088f7a21599630a500aa7881331e6f4f7107ea2cb4 jpeg
{
    "title": "Taken on 2016-04-17T20:01:45+00:00",
    "image": "https://photos.simonwillison.net/i/365135c4f3997964b978de088f7a21599630a500aa7881331e6f4f7107ea2cb4.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/365135c4f3997964b978de088f7a21599630a500aa7881331e6f4f7107ea2cb4.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 14.516ms · About: dogsheep/dogsheep-photos