Create gps data from google takeout
location-geotag.py is quite old and does not work properly. The idea behind this script is to add gps coordinate to pictures based on google takeout data.
Alternatively gps-csv.py can be used to achieve a similar result. This script takes the google gps data and creates a csv. This csv can then be used to add the gps coordinates with exiftool via
exiftool -geosync=-01:00:00 -geotag history.csv imagefolder -v2
The v2 flag is just for verbose output and not necessary. Most of the time its necessary to sync the time when in different timezones (or the time on the camera is not set properly), that can be done via -geotag like shown above. Better to test a few photos beforehand for which the coordinates are known. Note: exiftool estimates the coordinates, becuase most of the time there might not be gps data for that exact timestamp.
The dawarich pendant may also be used and takes a GeoJSON Export that can be generated there. Input & Output file may be specified as arguments when calling when preprocessing the gps data for exiftool - especially for input the default is pretty dumb and was mainly used for easier develop/debug/testing.
additional exiftool stuff
fix timestamp
Fix timestamps directly on files with
exiftool -AllDates-=01:00:00 img v2
Offset may also be just 1 for 1 hour i believe. and also can take +=