photos_on_a_map (view)

1 row where "date" is on date 2018-09-04 and latitude = "50.65674666666666"

View and edit SQL

latitude

  • 50.65674666666666 · 1

date (date)

  • 2018-09-04 · 1
date latitude longitude sha256 ext popup
2018-09-04T14:29:33+00:00 50.65674666666666 -4.251666666666667 03546cdc3eb2bd9bb65aa3004efbb8e1ca942ba52a6e860582f7c7f725f7a624 heic
{
    "title": "Taken on 2018-09-04T14:29:33+00:00",
    "image": "https://photos.simonwillison.net/i/03546cdc3eb2bd9bb65aa3004efbb8e1ca942ba52a6e860582f7c7f725f7a624.heic?w=400",
    "link": "https://photos.simonwillison.net/i/03546cdc3eb2bd9bb65aa3004efbb8e1ca942ba52a6e860582f7c7f725f7a624.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 21.301ms · About: dogsheep/dogsheep-photos