####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:
points.kml
- a point for every photo with GPS coordsroute.kml
- a single line that joins every photo with GPS coords
points.kml
looks like this in Google Earth:
routes.kml
looks like this in Google Maps:
- You'll need the Ruby language installed
- And the Ruby exifr Library, which you can get by running
gem install exifr
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