photos_on_a_map (view)

2 rows where latitude = "37.742175"

View and edit SQL

latitude

  • 37.742175 · 2

date (date)

date latitude longitude sha256 ext popup
2018-02-20T22:11:34+00:00 37.742175 -122.44941666666666 3645e1accd86e5cb0c56c6f2beea438f257bf8d0e5b60a324cd7ec8eb3e49b7c heic
{
    "title": "Taken on 2018-02-20T22:11:34+00:00",
    "image": "https://photos.simonwillison.net/i/3645e1accd86e5cb0c56c6f2beea438f257bf8d0e5b60a324cd7ec8eb3e49b7c.heic?w=400",
    "link": "https://photos.simonwillison.net/i/3645e1accd86e5cb0c56c6f2beea438f257bf8d0e5b60a324cd7ec8eb3e49b7c.heic?w=1200"
}
2018-02-20T22:07:06+00:00 37.742175 -122.44953 78a1f825ca163f4213539e9b525ea2b144b36f0987592fde7ca24d3043d63fb5 heic
{
    "title": "Taken on 2018-02-20T22:07:06+00:00",
    "image": "https://photos.simonwillison.net/i/78a1f825ca163f4213539e9b525ea2b144b36f0987592fde7ca24d3043d63fb5.heic?w=400",
    "link": "https://photos.simonwillison.net/i/78a1f825ca163f4213539e9b525ea2b144b36f0987592fde7ca24d3043d63fb5.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 22.778ms · About: dogsheep/dogsheep-photos