photos_on_a_map (view)

2 rows where "date" is on date 2018-04-22 and latitude = "37.57928"

View and edit SQL

latitude

  • 37.57928 · 2

date (date)

  • 2018-04-22 · 2
date latitude longitude sha256 ext popup
2018-04-22T00:07:16+00:00 37.57928 -122.344095 9dbef4fb7519b183da13d3ce4beb757618271e8a3b5805186c71c661d8979557 heic
{
    "title": "Taken on 2018-04-22T00:07:16+00:00",
    "image": "https://photos.simonwillison.net/i/9dbef4fb7519b183da13d3ce4beb757618271e8a3b5805186c71c661d8979557.heic?w=400",
    "link": "https://photos.simonwillison.net/i/9dbef4fb7519b183da13d3ce4beb757618271e8a3b5805186c71c661d8979557.heic?w=1200"
}
2018-04-22T00:04:28+00:00 37.57928 -122.34413833333333 7ff235acd3b220a7af4ba71085813dcdce87ec322760ed6582ce5e4b4fb3230c heic
{
    "title": "Taken on 2018-04-22T00:04:28+00:00",
    "image": "https://photos.simonwillison.net/i/7ff235acd3b220a7af4ba71085813dcdce87ec322760ed6582ce5e4b4fb3230c.heic?w=400",
    "link": "https://photos.simonwillison.net/i/7ff235acd3b220a7af4ba71085813dcdce87ec322760ed6582ce5e4b4fb3230c.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 18.477ms · About: dogsheep/dogsheep-photos