photos_on_a_map (view)

2 rows where longitude = "-122.44934166666667" sorted by date descending

View and edit SQL

longitude

  • -122.44934166666667 · 2

ext

date (date)

date ▲ latitude longitude sha256 ext popup
2018-02-20T23:03:55+00:00 37.74256166666667 -122.44934166666667 866b6aad57139888ad0b6b61fbe39fb880fa71477cf96e8ed89020de0358bb5f heic
{
    "title": "Taken on 2018-02-20T23:03:55+00:00",
    "image": "https://photos.simonwillison.net/i/866b6aad57139888ad0b6b61fbe39fb880fa71477cf96e8ed89020de0358bb5f.heic?w=400",
    "link": "https://photos.simonwillison.net/i/866b6aad57139888ad0b6b61fbe39fb880fa71477cf96e8ed89020de0358bb5f.heic?w=1200"
}
2018-02-20T23:02:11+00:00 37.74260833333334 -122.44934166666667 54525e90a3fda130db87d551bb7a10208980d0d1960ca9b83bac61d2499a67d8 heic
{
    "title": "Taken on 2018-02-20T23:02:11+00:00",
    "image": "https://photos.simonwillison.net/i/54525e90a3fda130db87d551bb7a10208980d0d1960ca9b83bac61d2499a67d8.heic?w=400",
    "link": "https://photos.simonwillison.net/i/54525e90a3fda130db87d551bb7a10208980d0d1960ca9b83bac61d2499a67d8.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.322ms · About: dogsheep/dogsheep-photos