photos_on_a_map (view)

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

View and edit SQL

latitude

  • 37.57925 · 2

date (date)

  • 2018-04-22 · 2
date latitude longitude sha256 ext popup
2018-04-22T00:11:18+00:00 37.57925 -122.34418666666667 decf63b8e7a30b93e080919d312b4d985736ca17678d96fa4fdd3ce81c84a721 heic
{
    "title": "Taken on 2018-04-22T00:11:18+00:00",
    "image": "https://photos.simonwillison.net/i/decf63b8e7a30b93e080919d312b4d985736ca17678d96fa4fdd3ce81c84a721.heic?w=400",
    "link": "https://photos.simonwillison.net/i/decf63b8e7a30b93e080919d312b4d985736ca17678d96fa4fdd3ce81c84a721.heic?w=1200"
}
2018-04-22T00:05:51+00:00 37.57925 -122.34414666666666 96fb0f6d09e9f87f06302d22cf26737a25371c0c18822ca26c593820c668a15e heic
{
    "title": "Taken on 2018-04-22T00:05:51+00:00",
    "image": "https://photos.simonwillison.net/i/96fb0f6d09e9f87f06302d22cf26737a25371c0c18822ca26c593820c668a15e.heic?w=400",
    "link": "https://photos.simonwillison.net/i/96fb0f6d09e9f87f06302d22cf26737a25371c0c18822ca26c593820c668a15e.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.953ms · About: dogsheep/dogsheep-photos