Use a UTF-8 CSV or TSV with filenames and latitude and longitude in decimal degrees. The tool recognizes comma, semicolon and tab delimiters.
Review north, south, east and west values. Missing references are inferred from signed coordinates. An explicit west or south reference can accompany a positive magnitude. Correct conflicting signs and duplicate paths before exporting.
Altitude is in meters. Negative headings wrap into a compass bearing from 0 to 360 degrees. Existing timestamp values pass through unchanged.
Put metadata.csv next to the photos, open a terminal in the folder and run exiftool -csv=metadata.csv . including the final dot. ExifTool writes metadata into the photos and normally retains backup copies. Use a small test set before processing the rest.