Author Topic: How to show photo-location from GPS-EXIF-Header in Google Maps?  (Read 193 times)

pstein

  • Jr. Member
  • **
  • Posts: 21
When I take photos with my digicam resp. SmartPhone then the current gps location is put into the corresponding Exif-Header fields of the *.jpg file.

What I need now is a way to visualize/show this position later on a map in GoogleMaps.

Therefore ExifFool GUI (or cmdline tool) should offer a menu/cmdline option to open the embedded location in GoogleMaps in the default browser (e.g. Firefox).

How can I do this in detail?

If ExifTool does not offer this feature then maybe someone could recommend me another tool which do the job.

ExifTool should add this feature.

GPS-Exif-Header fields would be otherwise useless.

Thank you
Peter
« Last Edit: July 10, 2020, 02:29:34 AM by pstein »

StarGeek

  • Global Moderator
  • ExifTool Freak
  • *****
  • Posts: 3785
Re: How to show photo-location from GPS-EXIF-Header in Google Maps?
« Reply #1 on: July 10, 2020, 11:03:51 AM »
Therefore ExifFool GUI

As is mentioned in the stickied post, the exiftool GUI is no longer supported.

Quote
(or cmdline tool) should offer a menu/cmdline option to open the embedded location in GoogleMaps in the default browser (e.g. Firefox).

While it doesn't open up a browser, I did create a config file that will output URLs to various mapping sites.

Example output:
Code: [Select]
C:\>exiftool -config GPS2MapUrl.config -g1 -a -s y:\!temp\Test4.jpg  -*maps*
---- Composite ----
BingMapsUrl                     : https://bing.com/maps/default.aspx?cp=40.6892~-74.0445&sp=point.40.6892_-74.0445_.
GoogleMapsUrl                   : https://www.google.com/maps/search/?q=40.6892,-74.0445
MapquestMapsUrl                 : https://www.mapquest.com/?q=40.6892,-74.0445
OpenStreetMapsUrl               : https://www.openstreetmap.org/?mlat=40.6892&mlon=-74.0445
YandexMapsUrl                   : https://yandex.com/maps/?ll=-74.0445%2C40.6892&text=40.6892%2C-74.0445

Anything more you're going to have to look for something else.  Some obvious examples would be LightRoom (paid), IMatch (Paid), Digikam (FOSS), or similar programs.  One reason for this is the fact that such map APIs are not always free and can be quite expensive.  That's something that basically killed the free GeoSetter program.
Troubleshooting hints:
* When posting, include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).
* Double all percent signs (%) in a Windows batch file.
* If your GPS coords are negative, make sure and set the GpsLatitudeRef and GpsLongitudeRef tags correctly.

Alan Clifford

  • ExifTool Freak
  • *****
  • Posts: 469
    • A selection of Alan Clifford's photographs
Re: How to show photo-location from GPS-EXIF-Header in Google Maps?
« Reply #2 on: July 10, 2020, 12:50:08 PM »
Nikon view nx may be a solution


Alan Clifford

  • ExifTool Freak
  • *****
  • Posts: 469
    • A selection of Alan Clifford's photographs
Re: How to show photo-location from GPS-EXIF-Header in Google Maps?
« Reply #3 on: July 10, 2020, 03:03:25 PM »
It can be done with the command line.

This is for a mac terminal:

open -a /Applications/Firefox.app/ `exiftool -p 'http://maps.google.co.uk/?q=$composite:gpslatitude#,%20$composite:gpslongitude#&z=13&t=h' x-s1_4030.jpg`

See attached for the result.


Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16687
    • ExifTool Home Page
Re: How to show photo-location from GPS-EXIF-Header in Google Maps?
« Reply #4 on: July 10, 2020, 03:26:10 PM »
@Alan: Nice.
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).