Set a Street address as a geotag to work on iOS Maps

Started by johmura, July 06, 2020, 07:14:25 AM

Previous topic - Next topic

johmura

Hi again,

I read the geotag section and wanted to mention if you can add a street address to show up on a Map in the Photos App on iOS, I have tried adding the coordinates using:

exiftool -EXIF:GPSLongitude="-xx.xxxxxx" -EXIF:GPSLatitude="xx.xxxxxxx" photo.jpg

it is not showing up on the map

Is there another way to get this to work? cheers

StarGeek

#1
I don't use a Mac so I don't know what you can do to fix the problem with the Photos app, but I can point out one problem with your command.  You're not setting the GPS Ref tags.  This is especially important since your example Longitude is negative.  Without the Ref tag being set, the GPS location will be on the opposite side of the world.

Try this
exiftool -GPSLatitude*=40.6892 -GPSLongitude*=-74.0445 photo.jpg

edit: dropped a word
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

johmura

I am from the other side of the world, Australia  8)  I imported a image that has geotag from a iPhone 4S and here is the metadata:


---- ExifTool ----
ExifToolVersion                 : 11.85
---- IFD0 ----
Make                            : Apple
Model                           : iPhone 4S
Orientation                     : Rotate 90 CW
XResolution                     : 72
YResolution                     : 72
ResolutionUnit                  : inches
Software                        : 7.0.4
ModifyDate                      : 2015:03:10 17:59:14
YCbCrPositioning                : Centered
---- ExifIFD ----
.....
.....
....
....
---- Apple ----
RunTimeFlags                    : Valid
RunTimeValue                    : 36965157216583
RunTimeEpoch                    : 0
RunTimeScale                    : 1000000000
---- GPS ----
GPSLatitudeRef                  : South
GPSLatitude                     : XX deg XX' XX."
GPSLongitudeRef                 : East
GPSLongitude                    : XXX deg X' XX.XX"
GPSAltitudeRef                  : Above Sea Level
GPSAltitude                     : 2 m
GPSTimeStamp                    : 07:59:11
GPSImgDirectionRef              : True North
GPSImgDirection                 : XX.45678901
GPSDateStamp                    : 2015:03:10
---- Composite ----
RunTimeSincePowerUp             : 10:16:05
Aperture                        : 2.4
ImageSize                       : 2448x2448
Megapixels                      : 6.0
ScaleFactor35efl                : 11.0
ShutterSpeed                    : 1/120
SubSecCreateDate                : 2015:03:10 17:59:14.197
SubSecDateTimeOriginal          : 2015:03:10 17:59:14.197
GPSAltitude                     : 2 m Above Sea Level
GPSDateTime                     : 2015:03:10 07:59:11Z
GPSLatitude                     : XX deg XX' XX.XX" S
GPSLongitude                    : XXX deg X' XX.XX" E
CircleOfConfusion               : 0.003 mm
FOV                             : 41.9 deg
FocalLength35efl                : 4.3 mm (35 mm equivalent: 47.0 mm)
GPSPosition                     : XX deg XX' XX.XX" S, XXX deg X' XX.XX" E
HyperfocalDistance              : 2.79 m
LightValue                      : 9.8


and here is the photo that needs a geotag.

---- ExifTool ----
ExifToolVersion                 : 11.85
---- System ----

---- File ----

---- JFIF ----

---- IFD0 ----
Make                            : FUJIFILM
Model                           : FinePix S5700 S700
---- ExifIFD ----

---- FujiFilm ----

---- InteropIFD ----
InteropIndex                    : R98 - DCF basic file (sRGB)
InteropVersion                  : 0100
---- PrintIM ----

---- IFD1 ----

---- XMP-x ----
XMPToolkit                      : Image::ExifTool 11.85
---- XMP-rdf ----

---- XMP-exif ----
GPSLatitude                     : XXX deg X' XX.XX" N
GPSLongitude                    : XX deg XX' XX.XX" W
---- XMP-xmp ----
CreatorTool                     : Microsoft Windows Photo Viewer 6.1.7600.16385
---- Composite ----
Aperture                        : 6.3
ImageSize                       : 2304x3072
Megapixels                      : 7.1
ScaleFactor35efl                : 6.1
ShutterSpeed                    : 1/340
GPSLatitudeRef                  : North
GPSLongitudeRef                 : West
CircleOfConfusion               : 0.005 mm
FOV                             : 27.6 deg
FocalLength35efl                : 12.1 mm (35 mm equivalent: 73.3 mm)
GPSPosition                     : XXX deg X' XX.XX" N, XX deg XX' XX.XX" W
HyperfocalDistance              : 4.69 m
LightValue                      : 14.4

Phil Harvey

#3
Your second photo is geotagged in XMP, while your first is in EXIF.  To copy the XMP coordinates to EXIF, use this command:

exiftool "-GPS:GPSLatitude<XMP:GPSLatitude" "-GPS:GPSLongitude<XMP:GPSLongitude" "-GPS:GPSLatitudeRef<Composite:GPSLatitudeRef" "-GPS:GPSLongitudeRef<Composite:GPSLongitudeRef" FILE

- Phil

Edit: Here is the full argfile that is included in the full ExifTool distribution to convert GPS from XMP to EXIF.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

johmura

So I execute this command first:

exiftool -GPSLatitude*=40.6892 -GPSLongitude*=-74.0445

and then copy coordinates to GPS tags with the your command

Can it be executed as one command?

Phil Harvey

Yes you can do this as one command.

If you write the same tag more than once in a command, the rightmost one takes precedence (details here).

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).