photos_on_a_map (view)

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

View and edit SQL

longitude

  • -122.44922 · 2

ext

date (date)

date ▲ latitude longitude sha256 ext popup
2018-02-20T22:58:58+00:00 37.74252833333333 -122.44922 e9b827dc4ad8bf88186a658c135e26d198248e19cf44205ce540e8b6f24e8e69 heic
{
    "title": "Taken on 2018-02-20T22:58:58+00:00",
    "image": "https://photos.simonwillison.net/i/e9b827dc4ad8bf88186a658c135e26d198248e19cf44205ce540e8b6f24e8e69.heic?w=400",
    "link": "https://photos.simonwillison.net/i/e9b827dc4ad8bf88186a658c135e26d198248e19cf44205ce540e8b6f24e8e69.heic?w=1200"
}
2018-02-20T22:15:33+00:00 37.74252833333333 -122.44922 adfc1be11ff87adaae37e94af4eff631ca50324adcf3f5092ac56c3ce8c37068 heic
{
    "title": "Taken on 2018-02-20T22:15:33+00:00",
    "image": "https://photos.simonwillison.net/i/adfc1be11ff87adaae37e94af4eff631ca50324adcf3f5092ac56c3ce8c37068.heic?w=400",
    "link": "https://photos.simonwillison.net/i/adfc1be11ff87adaae37e94af4eff631ca50324adcf3f5092ac56c3ce8c37068.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 30.725ms · About: dogsheep/dogsheep-photos