Links GPX tracks to photographs by matching the image timestamp (in the EXIF data) to the timestamp in the GPX track supplied.
Links your photograph’s timestamps to the timestamps in your GPX tracks. Currently, this package will only output geojson linking images to tracks. Your photos’ EXIF data will not be changed.
You can install this globally if you want. If you do, you’ll get access to the gil commandline command.
pip install GpxImageLinkifier
Firstly, try the help:
Very basic usage looks like this:
gil path/to/tracks.gpx path/to/images_folder/
To output to a file, you’ll add the --output-path parameter:
gil path/to/tracks.gpx path/to/images_folder/ --output-path ~/Desktop/output.geojson
Oh but wait, maybe your camera’s clock is on a different timezone than your gps! No biggy. use --tz-images and --tz-gpx. For their values, use any pytz-friendly timezone code:
gil path/to/tracks.gpx path/to/images_folder/ --tz-images US/Pacific --tz-images UTC
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.