Skip to content

How to add GPS latitude and longitude using Exiftool

Current Status – 12.2.203

$ exiftool Lud_01.jpg |grep -i gps
GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : North
GPS Altitude Ref                : Above Sea Level
GPS Altitude                    : 349.6 m Above Sea Level
GPS Latitude                    : 49 deg 45' 55.91" N
GPS Longitude                   : 10 deg 37' 9.66" E
GPS Longitude Ref               : East
GPS Position                    : 49 deg 45' 55.91" N, 10 deg 37' 9.66" E

$ exiftool Lud_01.jpg | grep -i date
File Modification Date/Time     : 2025:02:12 00:00:10+01:00
File Access Date/Time           : 2025:02:12 00:00:10+01:00
File Creation Date/Time         : 2025:02:11 13:26:09+01:00
Modify Date                     : 2024:10:25 20:24:10
Date/Time Original              : 2024:10:25 20:24:10
Create Date                     : 2024:10:25 20:24:10

Google Photos


Version used

D:\Simon>exiftool -ver
13.16

OS: Windows 10

Image with GPS data

D:\Simon>exiftool pict-with-gps.jpg |grep -i gps
File Name                       : pict-with-gps.jpg
GPS Latitude Ref                : North
GPS Altitude Ref                : Above Sea Level
GPS Longitude Ref               : East
GPS Altitude                    : 389 m Above Sea Level
GPS Latitude                    : 49 deg 45' 53.26" N
GPS Longitude                   : 10 deg 37' 8.48" E
GPS Position                    : 49 deg 45' 53.26" N, 10 deg 37' 8.48" E

Image without GPS data

D:\Simon>exiftool pict-without-gps.jpg | grep -i gps
File Name                       : pict-without-gps.jpg

Change GPS data


D:\Simon\test>exiftool  Sch_54-with-gps.jpg |grep -i gps
File Name                       : Sch_54-with-gps.jpg

D:\Simon\test>exiftool -exif:gpslatitude="49 45 53.26" -exif:gpslatituderef=N   Sch_54-with-gps.jpg
    1 image files updated

D:\Simon\test>exiftool -exif:gpslongitude="10 37 8,48" -exif:gpslongituderef=E  Sch_54-with-gps.jpg
    1 image files updated

D:\Simon\test>exiftool -gpsaltituderef="Above Sea Level" Sch_54-with-gps.jpg
    1 image files updated

D:\Simon\test>exiftool -gpsaltitude="389"  Sch_54-with-gps.jpg
    1 image files updated

D:\Simon\test>exiftool  Sch_54-with-gps.jpg |grep -i gps
File Name                       : Sch_54-with-gps.jpg
GPS Version ID                  : 2.3.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Altitude                    : 389 m Above Sea Level
GPS Latitude                    : 49 deg 45' 53.26" N
GPS Longitude                   : 10 deg 37' 8.00" E
GPS Position                    : 49 deg 45' 53.26" N, 10 deg 37' 8.00" E




Potential Problem

  • File Creation Date/Time
  • File Modification Date/Time
  • File Access Date/Time
D:\Simon>exiftool  p.jpg
ExifTool Version Number         : 13.16
File Name                       : p.jpg
Directory                       : .
File Size                       : 332 kB
File Modification Date/Time     : 2025:01:30 20:06:48+01:00
File Access Date/Time           : 2025:01:30 20:06:48+01:00
File Creation Date/Time         : 2025:01:30 19:42:31+01:00

Using a Viewer to locate pitures via Google Maps

Metadaten bearbeiten mit dem ExifTool

https://www.thorsten-willert.de/optimierung/grafikoptimierung/metadaten-bearbeiten-mit-dem-exiftool

Usefull Links

https://stackoverflow.com/questions/41849691/how-to-add-gps-latitude-and-longitude-using-exiftool-in-mac-how-to-edit-meta-da

https://sitecam.io/how-to-edit-gps-coordinates-on-multiple-photos-in-windows

Published inAllgemein

Be First to Comment

Leave a Reply