photos_on_a_map (view)

2 rows where "date" is on date 2018-04-22 and latitude = "37.57923666666667"

View and edit SQL

latitude

  • 37.57923666666667 · 2

date (date)

  • 2018-04-22 · 2
date latitude longitude sha256 ext popup
2018-04-22T00:15:46+00:00 37.57923666666667 -122.34424666666666 ad9ef159b032c9390823705c5c527212864618c1f40128d3684b850dd5a27f96 heic
{
    "title": "Taken on 2018-04-22T00:15:46+00:00",
    "image": "https://photos.simonwillison.net/i/ad9ef159b032c9390823705c5c527212864618c1f40128d3684b850dd5a27f96.heic?w=400",
    "link": "https://photos.simonwillison.net/i/ad9ef159b032c9390823705c5c527212864618c1f40128d3684b850dd5a27f96.heic?w=1200"
}
2018-04-22T00:12:02+00:00 37.57923666666667 -122.34407 55a68d0f58176b06688b769b6be687ac460615526ed1d52affde448f153bba50 heic
{
    "title": "Taken on 2018-04-22T00:12:02+00:00",
    "image": "https://photos.simonwillison.net/i/55a68d0f58176b06688b769b6be687ac460615526ed1d52affde448f153bba50.heic?w=400",
    "link": "https://photos.simonwillison.net/i/55a68d0f58176b06688b769b6be687ac460615526ed1d52affde448f153bba50.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 16.802ms · About: dogsheep/dogsheep-photos