Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 1.45 KB

README.md

File metadata and controls

34 lines (18 loc) · 1.45 KB

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