0.0
No commit activity in last 3 years
No release in over 3 years
Load GPS coordinates from uploaded photos exif meta information into usually Rails models.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9.12.2
~> 10.1.0
~> 2.14.1

Runtime

~> 1.1.3
 Project Readme

PhotoGeoloader

Gem Version Build Status

Ruby gem loading GPS position from photo's EXIF informations into (Rails) models.

Created and tested for photos from iPhone and placing it to model.

Usage

Simplest - load position data and handle on your own

photo = PhotoGeoloader.new('path/to/photo.jpg')
p photo.position[:latitude]
p photo.position[:longitude]
p photo.position[:altitude]

Rails model example

# attributes: photo (string, carrierwave uploader), latitude (float), longitude (float), altitude (float)
class Photo < ActiveRecord::Base
  attr_accessible :photo
  mount_uploader :photo, MyPhotoUploader
  before_create do
    PhotoGeoloader.new(photo.path).place_attributes self
  end
end

License

Released under MIT license