photos_on_a_map (view)

2 rows where "date" is on date 2016-04-19 and latitude = "37.863236666666666" sorted by popup

View and edit SQL

latitude

  • 37.863236666666666 · 2

ext

date (date)

  • 2016-04-19 · 2
date latitude longitude sha256 ext popup ▼
2016-04-19T22:24:58+00:00 37.863236666666666 -122.49486666666667 d0645484f8416d699b4c9bb4a33ce66030db5ce8dbaf7a6145e16cbec845369c jpeg
{
    "title": "Taken on 2016-04-19T22:24:58+00:00",
    "image": "https://photos.simonwillison.net/i/d0645484f8416d699b4c9bb4a33ce66030db5ce8dbaf7a6145e16cbec845369c.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/d0645484f8416d699b4c9bb4a33ce66030db5ce8dbaf7a6145e16cbec845369c.jpeg?w=1200"
}
2016-04-19T22:25:25+00:00 37.863236666666666 -122.49486666666667 303e5a7d0a3d1c3f5d5429bafb9ff301b9b5b333714db85a6b4fcd750600a7da jpeg
{
    "title": "Taken on 2016-04-19T22:25:25+00:00",
    "image": "https://photos.simonwillison.net/i/303e5a7d0a3d1c3f5d5429bafb9ff301b9b5b333714db85a6b4fcd750600a7da.jpeg?w=400",
    "link": "https://photos.simonwillison.net/i/303e5a7d0a3d1c3f5d5429bafb9ff301b9b5b333714db85a6b4fcd750600a7da.jpeg?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 27.474ms · About: dogsheep/dogsheep-photos