ImmichI
Immich3mo ago
Morphior

How do I get a list of all assets’ locations?

I currently call the /map/markers API and extract the coords from all markers, and then I loop through all shared albums (/api/albums?shared=true), loop through all assets in each album, and check whether asset["exifInfo"]["latitude"] and asset["exifInfo"]["longitude"] evaluates as
True
. But with my 13k assets and 30 shared albums, this process takes five minutes or more. There must be a way to speed this up. Any ideas?
Was this page helpful?