photos_on_a_map (view)

2 rows where "date" is on date 2017-12-16 and longitude = "-0.1320305" sorted by sha256

View and edit SQL

longitude

  • -0.1320305 · 2

date (date)

  • 2017-12-16 · 2
date latitude longitude sha256 ▼ ext popup
2017-12-16T11:52:15+00:00 51.5034 -0.1320305 7579f41e5a983976df725e86a94b7261d7dd42ce20b6fd1e1ac24157a5f423a6 heic
{
    "title": "Taken on 2017-12-16T11:52:15+00:00",
    "image": "https://photos.simonwillison.net/i/7579f41e5a983976df725e86a94b7261d7dd42ce20b6fd1e1ac24157a5f423a6.heic?w=400",
    "link": "https://photos.simonwillison.net/i/7579f41e5a983976df725e86a94b7261d7dd42ce20b6fd1e1ac24157a5f423a6.heic?w=1200"
}
2017-12-16T11:52:14+00:00 51.5034 -0.1320305 d84a166371c9d0f249aa25afbac69ba5cd310a5392fddf2c113736b53f0c6d5e heic
{
    "title": "Taken on 2017-12-16T11:52:14+00:00",
    "image": "https://photos.simonwillison.net/i/d84a166371c9d0f249aa25afbac69ba5cd310a5392fddf2c113736b53f0c6d5e.heic?w=400",
    "link": "https://photos.simonwillison.net/i/d84a166371c9d0f249aa25afbac69ba5cd310a5392fddf2c113736b53f0c6d5e.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 23.417ms · About: dogsheep/dogsheep-photos