photos_on_a_map (view)

1 row where "date" is on date 2020-01-25 and longitude = "-122.32977999999999"

View and edit SQL

Suggested facets: date (date)

date latitude longitude sha256 ext popup
2020-01-25T18:14:27+00:00 37.11621117 -122.32977999999999 6b8ef6a1de38c5e897e740c407caa88bbe307b561dac970ccd9b58f870a1f85e heic
{
    "title": "Taken on 2020-01-25T18:14:27+00:00",
    "image": "https://photos.simonwillison.net/i/6b8ef6a1de38c5e897e740c407caa88bbe307b561dac970ccd9b58f870a1f85e.heic?w=400",
    "link": "https://photos.simonwillison.net/i/6b8ef6a1de38c5e897e740c407caa88bbe307b561dac970ccd9b58f870a1f85e.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 23.992ms · About: dogsheep/dogsheep-photos