Ref:

Online example
http://regex.info/exif.cgi

migration
rails generate migration AddLatitudeAndLongitudeToModel latitude:float longitude:float
rake db:migrate
https://github.com/alexreisner/geocoder
in case of doing math in the future, datatype is float

model storage
after_attachment_post_process
http://stackoverflow.com/questions/1874851/image-orientation-and-validation-with-paperclip

google maps accept gps format
http://support.google.com/maps/bin/answer.py?hl=en&answer=2533464

exiftool api
http://www.sno.phy.queensu.ca/~phil/exiftool/exiftool_pod.html
-d
-c
-j

json to hash
JSON.parse

string to datetime
DateTime.parse

[issue] iOS upload files stripped EXIF
http://stackoverflow.com/questions/16084278/exif-when-uploading-pictures-with-php-on-a-mobile-device-stripping-gps-header

http://stackoverflow.com/questions/16297730/image-upload-from-iphone-strips-exif-data

Comments

comments powered by Disqus