photos_on_a_map (view)

1 row where "date" is on date 2018-04-21 and latitude = "37.579258333333335" sorted by latitude

View and edit SQL

latitude

  • 37.579258333333335 · 1

ext

date (date)

  • 2018-04-21 · 1
date latitude ▼ longitude sha256 ext popup
2018-04-21T23:55:53+00:00 37.579258333333335 -122.3442 b6f0f6ee850459ec2a1cfdd50429c601d1d0ef426d99844c14e8b688b157609e heic
{
    "title": "Taken on 2018-04-21T23:55:53+00:00",
    "image": "https://photos.simonwillison.net/i/b6f0f6ee850459ec2a1cfdd50429c601d1d0ef426d99844c14e8b688b157609e.heic?w=400",
    "link": "https://photos.simonwillison.net/i/b6f0f6ee850459ec2a1cfdd50429c601d1d0ef426d99844c14e8b688b157609e.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 17.097ms · About: dogsheep/dogsheep-photos