photos_on_a_map (view)

1 row where "date" is on date 2018-03-25 and latitude = "37.73271666666667"

View and edit SQL

latitude

  • 37.73271666666667 · 1

date (date)

  • 2018-03-25 · 1
date latitude longitude sha256 ext popup
2018-03-25T23:58:04+00:00 37.73271666666667 -122.468375 486a9d6bad60a510919292a3e18dd70e4ca8159162f601bbce169d6e1af9ff7c heic
{
    "title": "Taken on 2018-03-25T23:58:04+00:00",
    "image": "https://photos.simonwillison.net/i/486a9d6bad60a510919292a3e18dd70e4ca8159162f601bbce169d6e1af9ff7c.heic?w=400",
    "link": "https://photos.simonwillison.net/i/486a9d6bad60a510919292a3e18dd70e4ca8159162f601bbce169d6e1af9ff7c.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 11.871ms · About: dogsheep/dogsheep-photos