photos_on_a_map (view)

2 rows where "date" is on date 2017-11-05, ext = "heic" and longitude = "-122.46446166666666" sorted by date descending

View and edit SQL

longitude

  • -122.46446166666666 · 2

ext

  • heic · 2

date (date)

  • 2017-11-05 · 2
date ▲ latitude longitude sha256 ext popup
2017-11-05T23:06:49+00:00 37.76921166666666 -122.46446166666666 3c189d4ca97d42b444c05d69f5f798f0ecb1c4066123d5f75d1d0d60e332a475 heic
{
    "title": "Taken on 2017-11-05T23:06:49+00:00",
    "image": "https://photos.simonwillison.net/i/3c189d4ca97d42b444c05d69f5f798f0ecb1c4066123d5f75d1d0d60e332a475.heic?w=400",
    "link": "https://photos.simonwillison.net/i/3c189d4ca97d42b444c05d69f5f798f0ecb1c4066123d5f75d1d0d60e332a475.heic?w=1200"
}
2017-11-05T23:05:44+00:00 37.768975 -122.46446166666666 1423536b7567da6562cd1e842bd93be31d8ebe84d797afe4a81644bac2a2c9e3 heic
{
    "title": "Taken on 2017-11-05T23:05:44+00:00",
    "image": "https://photos.simonwillison.net/i/1423536b7567da6562cd1e842bd93be31d8ebe84d797afe4a81644bac2a2c9e3.heic?w=400",
    "link": "https://photos.simonwillison.net/i/1423536b7567da6562cd1e842bd93be31d8ebe84d797afe4a81644bac2a2c9e3.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 13.42ms · About: dogsheep/dogsheep-photos