Sorting photos into albums by GPS location

Hi all,

I’m trying to figure out how to sort photos taken with iPhone to albums based on location. Imagine you make a few images, videos in one location, then move to the next one. Later, you run a shortcut that creates an album, renames it, and pulls all photos from that location into the corresponding album.

In case it is not possible in the Photos app, I don’t mind exporting photos from the library to folders. I also don’t mind using Mac if it’s better suited for this job.

I have looked into Keyboard Maestro, Hazel but there is nothing about location. Have tried smart albums in the Photos app on Mac. It’s funny that adding “text” conditions to a smart album will filter photos by their location, but not all of them. I didn’t find this solution to be reliable.

Thanks for any suggestions!