8/17/2023 0 Comments Google maps photo search![]() ![]() It uses the standard sys and subprocess libraries and the distinctly non-standard pyexiv2 library. It reads the GPS info from the image file and opens Google Maps in my browser with a marker at the photo’s location.ġ4: latref = md.valueġ5: lat = md.valueġ6: lonref = md.valueġ7: lon = md.valueĢ0: print "No GPS info in file %s" % photoĢ3: # Convert the latitude and longitude to signed floating point values.Ģ4: latitude = float(lat) + float(lat)/60 + float(lat)/3600Ģ5: longitude = float(lon) + float(lon)/60 + float(lon)/3600Ģ6: if latref = 'S': latitude = -latitudeĢ7: if lonref = 'W': longitude = -longitudeĢ9: # Construct the Google Maps query and open it. The new program is called map, and when I call it, map photo.jpg This reads the GPS metadata from the iphone-photo.jpg file and writes it to all the files that start with IMG. The October program is called coordinate, and I use it like this: coordinate -g iphone-photo.jpg IMG* It works well, and I’ve been using it ever since, but once I had a bunch of photos with location info in them, I needed a tool that would do the converse: show me where they were taken. My idea was to be able to take one photo with my iPhone, which would capture the location in its EXIF metadata, and use the script to transfer that information to all the photos I took with my regular camera at that same location. Next post Previous post Locating your photos on Google Mapsīack in October I wrote a little script that added GPS location information to photos. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |