photos_on_a_map (view)

3 rows where longitude = "-122.44944666666666" sorted by date descending

View and edit SQL

longitude

  • -122.44944666666666 · 3

ext

date (date)

date ▲ latitude longitude sha256 ext popup
2018-02-20T22:52:16+00:00 37.742355 -122.44944666666666 232c6b6414de60758ae544a8323123a9d651d32c0769f5ad9aa8533b8635051b heic
{
    "title": "Taken on 2018-02-20T22:52:16+00:00",
    "image": "https://photos.simonwillison.net/i/232c6b6414de60758ae544a8323123a9d651d32c0769f5ad9aa8533b8635051b.heic?w=400",
    "link": "https://photos.simonwillison.net/i/232c6b6414de60758ae544a8323123a9d651d32c0769f5ad9aa8533b8635051b.heic?w=1200"
}
2018-02-20T22:34:09+00:00 37.74245 -122.44944666666666 13d35044047ad4b88a81050d5df6c88f8e7dd64b9106d4b2f861ed56e68cb541 heic
{
    "title": "Taken on 2018-02-20T22:34:09+00:00",
    "image": "https://photos.simonwillison.net/i/13d35044047ad4b88a81050d5df6c88f8e7dd64b9106d4b2f861ed56e68cb541.heic?w=400",
    "link": "https://photos.simonwillison.net/i/13d35044047ad4b88a81050d5df6c88f8e7dd64b9106d4b2f861ed56e68cb541.heic?w=1200"
}
2018-02-20T22:17:20+00:00 37.742338333333336 -122.44944666666666 60ea66f88a4bb4344c83a3c7392e45c2d6136629ba7508338a135e592897714c heic
{
    "title": "Taken on 2018-02-20T22:17:20+00:00",
    "image": "https://photos.simonwillison.net/i/60ea66f88a4bb4344c83a3c7392e45c2d6136629ba7508338a135e592897714c.heic?w=400",
    "link": "https://photos.simonwillison.net/i/60ea66f88a4bb4344c83a3c7392e45c2d6136629ba7508338a135e592897714c.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 25.754ms · About: dogsheep/dogsheep-photos