Skip to content
Browse files

Added altitude and accuracy to location metadata

  • Loading branch information...
1 parent 5168177 commit 1dc636c871d04c8ab0380129f51a3a265c99cd53 @markpmiles markpmiles committed Jul 1, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 GusUtils/NSMutableDictionary+ImageMetadata.m
View
2 GusUtils/NSMutableDictionary+ImageMetadata.m
@@ -117,6 +117,8 @@ - (void)setLocation:(CLLocation *)location {
[locDict setObject:[NSNumber numberWithFloat:exifLatitude] forKey:(NSString*)kCGImagePropertyGPSLatitude];
[locDict setObject:lngRef forKey:(NSString*)kCGImagePropertyGPSLongitudeRef];
[locDict setObject:[NSNumber numberWithFloat:exifLongitude] forKey:(NSString*)kCGImagePropertyGPSLongitude];
+ [locDict setObject:[NSNumber numberWithFloat:location.horizontalAccuracy] forKey:(NSString*)kCGImagePropertyGPSDOP];
+ [locDict setObject:[NSNumber numberWithFloat:location.altitude] forKey:(NSString*)kCGImagePropertyGPSAltitude];
[self setObject:locDict forKey:(NSString*)kCGImagePropertyGPSDictionary];
[locDict release];

0 comments on commit 1dc636c

Please sign in to comment.
Something went wrong with that request. Please try again.