Generates KML Point and Route (line) data from the GPS metadata in digital photos
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
photo-mapper.rb

README.md

photo-mapper


####photo-mapper is a simple script that generates KML files that plot the location and route of your travels from the GPS coordinates in your digital photographs. These KML files can then be opened in Google Earth or uploaded to Google Maps.

This Ruby script generates two Keyhole Markup Language files:

  1. points.kml - a point for every photo with GPS coords
  2. route.kml - a single line that joins every photo with GPS coords

points.kml looks like this in Google Earth:
Google Earth overlaid with points generated from digital photo metadata

routes.kml looks like this in Google Maps:
Google maps overlaid with route generated from digital photo metadata

Getting Started

Usage

Simply point the script at the folder containing your photo collection from the Terminal or Command Prompt and it will recursively search for all JPEG photos and read their GPS coordinates:

ruby photo-mapper.rb {starting_directory}

e.g.

ruby photo-mapper.rb Photos