I use exiftool for this:
exiftool -a -G1 -s -n --ext csv -api LargeFileSupport=1 -Composite:GPSPosition . > locations.csv
======== ./2023-0718-2051-28.mp4
[Composite] GPSPosition : 24.5551 -81.7793
======== ./2023-0718-1851-00.mp4
[Composite] GPSPosition : 41.8667 -87.6099
======== ./2023-0718-1853-00.mp4
[Composite] GPSPosition : 28.524 -80.6508
======== ./2023-0718-1851-28.jpg
[Composite] GPSPosition : 28.3768 -81.5493
======== ./2023-0719-0708-02.jpg
[Composite] GPSPosition : 24.5551 -81.7793
======== ./2023-0719-0732-09.mp4
[Composite] GPSPosition : 40.7114 -74.0133
With more options you get more tags like date, camera model, description etc in a .csv. I use that for proof-reading metadata in a spreadsheet with something like:
exiftool -a -G1 -s -n -r -api LargeFileSupport=1 -fileOrder5 FileName -api QuickTimeUTC=1 -System:FileName -MacOS:FileCreateDate -System:FileModifyDate -QuickTime:CreateDate -Keys:CreationDate -ExifIFD:DateTimeOriginal -ExifIFD:OffsetTime -IFD0:Make -Keys:Make -IFD0:Model -Keys:Model -IFD0:Software -Keys:Software -Composite:GPSPosition -XMP-xmp:Rating -Keys:UserRating -IPTC:Caption-Abstract -XMP-dc:Description -Keys:Description -IPTC:Keywords -XMP-dc:Subject -Keys:Keywords -csv . > out.csv