photos_on_a_map (view)

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

View and edit SQL

latitude

  • 37.57926666666667 · 2

date (date)

  • 2018-04-22 · 2
date latitude longitude sha256 ext popup
2018-04-22T00:19:14+00:00 37.57926666666667 -122.344155 246821387b2f48b22aa5207af43e16cf8ce0745ae5c68b969804449ebdb0b410 heic
{
    "title": "Taken on 2018-04-22T00:19:14+00:00",
    "image": "https://photos.simonwillison.net/i/246821387b2f48b22aa5207af43e16cf8ce0745ae5c68b969804449ebdb0b410.heic?w=400",
    "link": "https://photos.simonwillison.net/i/246821387b2f48b22aa5207af43e16cf8ce0745ae5c68b969804449ebdb0b410.heic?w=1200"
}
2018-04-22T00:11:12+00:00 37.57926666666667 -122.34417 3b435a93ced7320d53ff8a654508641529d82949253df7256c3baeb6a919385d heic
{
    "title": "Taken on 2018-04-22T00:11:12+00:00",
    "image": "https://photos.simonwillison.net/i/3b435a93ced7320d53ff8a654508641529d82949253df7256c3baeb6a919385d.heic?w=400",
    "link": "https://photos.simonwillison.net/i/3b435a93ced7320d53ff8a654508641529d82949253df7256c3baeb6a919385d.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 24.939ms · About: dogsheep/dogsheep-photos