Skip to content

Simple reverse geocoding with python and exiftool

License

Notifications You must be signed in to change notification settings

podiki/reverse_geo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reverse_geo

Simple reverse geocoding with Python and ExifTool

Requirements

ExifTool for reading/writing EXIF/IPTC/XMP tags in images, pyexiftool for using ExifTool from Python, and geopy for reverse geocoding. This script has only been used with Python 3.5.2.

Usage

Run the following command

python reverse_geo.py files

where files are the images to be updated. ExifTool will not override the files; the originals will be renamed with _original at the end.

Notes

This is just a simple script which copies XMP tags to IPTC (since darktable currently does not write IPTC tags) and then uses embedded GPS coordinates to do a reverse lookup and fill in location tags. This last part has only been tested in European cities, and some rural US areas where it uses county if no city information. This should cover a lot of use cases, but might need to be updated with more sophisticated handling for other locations. This is written with Metadata Working Group MWG standards as handled by ExifTool.

About

Simple reverse geocoding with python and exiftool

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages