-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6c014f4
commit 5503fc6
Showing
5 changed files
with
71 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// CLLocation+Aditions.h | ||
// Gowalla | ||
// | ||
// Created by Ruben Fonseca on 3/10/10. | ||
// Copyright 2010 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import <Cocoa/Cocoa.h> | ||
#import <CoreLocation/CLLocation.h> | ||
|
||
@interface CLLocation (Utilities) | ||
- (NSDictionary *) betterCoordinates; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// CLLocation+Aditions.m | ||
// Gowalla | ||
// | ||
// Created by Ruben Fonseca on 3/10/10. | ||
// Copyright 2010 __MyCompanyName__. All rights reserved. | ||
// | ||
|
||
#import "CLLocation-Utilities.h" | ||
|
||
|
||
@implementation CLLocation (Aditions) | ||
- (NSDictionary *)betterCoordinates { | ||
NSMutableDictionary *res = [NSMutableDictionary dictionaryWithCapacity:2]; | ||
[res setObject:[NSNumber numberWithDouble:self.coordinate.latitude] forKey:@"latitude"]; | ||
[res setObject:[NSNumber numberWithDouble:self.coordinate.longitude] forKey:@"longitude"]; | ||
return res; | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# CLLocationAdditions.rb | ||
# Gowalla | ||
# | ||
# Created by Ruben Fonseca on 3/10/10. | ||
# Copyright 2010 __MyCompanyName__. All rights reserved. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters