In creating this config file, attached below, I'm playing around with Github and markdown, so there may be some growing pains. When I make it public, the github repository will be here (https://github.com/StarGeekSpaceNerd/GPS2MapUrl.config).
If there are any other publicly available map sites that should be included, or if the format for the link ceases to work (quite likely), let me know and I'll see what I can do about fixing it.
This is mostly intended for use with images, as I don't have any videos with gps coordinates to test against. If there's interest and a sample can be made available, I can look into updating it to work with video.
GPS2MapUrl.configGPS2MapUrl.config is a user-defined config file for exiftool (https://www.exiftool.org/). It creates composite tag definitions to create URLs for various map websites based upon GPS coordinates embedded in the file.
InstallPlace this file in the same directory as exiftool.exe and start the command with
-config GPS2MapUrl.config (requires exiftool v 10.70 or greater) or include the full path (relative or absolute) if saved elsewhere. Optionally, tags can be copied from this file (marked by the dash lines) and placed in the
.exifTool_config file under the
'Image::ExifTool::Composite' => { line to have these tags available at all times.
Tag definitionsGoogleMapsUrlThis will create a link to Google maps based upon this StackOverflow answer
https://stackoverflow.com/a/32807681/3525475 (https://stackoverflow.com/a/32807681/3525475)
Example:
exiftool -config GPS2MapUrl.config -GoogleMapsUrl FILEBingMapsUrlThis will create a link to Bing maps based upon this page
https://docs.microsoft.com/en-us/bingmaps/articles/create-a-custom-map-url (https://docs.microsoft.com/en-us/bingmaps/articles/create-a-custom-map-url)
Example:
exiftool -config GPS2MapUrl.config -BingMapsUrl FILEOpenStreetMapsUrlThis will create a link to OpenStreetMap.org maps
Example:
exiftool -config GPS2MapUrl.config -OpenStreetMapsUrl FILEMapquestMapsUrlThis will create a link to Mapquest maps
Example:
exiftool -config GPS2MapUrl.config -MapquestMapsUrl FILEYandexMapsUrlThis will create a link to Yandex maps
Example:
exiftool -config GPS2MapUrl.config -YandexMapsUrl FILEUser ParametersZoomThis user parameter will add the level of zoom for the URL using the exiftool -userparam (https://exiftool.org/exiftool_pod.html#userParam-PARAM-VAL) option. There is no check to verify that the parameter passed is a viable value for the zoom. The zoom value for most of these websites seems to be a number from 1 to 16-20, depending upon the site.
Example:
exiftool -config GPS2MapUrl.config -userparam Zoom=16 -BingMapsUrl FILENotes- Bing Maps doesn't allow for the creation of push pins without an API key. This tag will use the collection sp=point option using a dot as the label.
- Requires exiftool version to be before 11.54 or later than 11.57
Revisions- Ver. 1.0 - 2019-02-04 - Bryan K. Williams (aka StarGeek) Created
- Ver. 1.1 - 2019-07-25 - Changed undef to empty string, fixed examples
- Ver. 1.2 - 2024-08-03 - Fixed MapQuest URL, note that MapQuest seems to have problems with some GPS Coordinates. For example, coordinates 40.6892, -74.0445 will not be found in MapQuest. Disabled Zoom in MapQuest as it no longer works. Removed "sp=point" from the Bing URL as it is ignored. Added default zoom level 16 for Bing because without it Bing's default level of zoom shows too wide of an area