Created
May 27, 2011 08:57
-
-
Save ahmetardal/994886 to your computer and use it in GitHub Desktop.
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
[[SSLocationManager sharedManager] addDelegate:self]; |
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
#pragma mark - | |
#pragma mark SSLocationManagerDelegate Methods | |
- (void) ssLocationManager:(SSLocationManager *)locManager updatedCurrentLocation:(YahooPlaceData *)_currentLocation | |
{ | |
NSLog(@"updated location: %@", [_currentLocation toString]); | |
} | |
- (void) ssLocationManager:(SSLocationManager *)locManager didFailWithError:(NSError *)error | |
{ | |
NSLog(@"location update failed..."); | |
} |
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
#import "SSLocationManager.h" |
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
[[SSLocationManager sharedManager] startUpdatingCurrentLocation]; |
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
@interface YahooPlaceData: NSObject | |
{ | |
NSNumber *quality; | |
NSNumber *latitude; | |
NSNumber *longitude; | |
NSNumber *radius; | |
NSString *name; | |
NSString *line1; | |
NSString *line2; | |
NSString *line3; | |
NSString *line4; | |
NSString *house; | |
NSString *street; | |
NSString *xstreet; | |
NSString *unittype; | |
NSString *unit; | |
NSString *postal; | |
NSString *neighborhood; | |
NSString *city; | |
NSString *county; | |
NSString *state; | |
NSString *country; | |
NSString *countrycode; | |
NSString *statecode; | |
NSString *countycode; | |
NSString *hash; | |
NSNumber *woeid; | |
NSNumber *woetype; | |
NSString *uzip; | |
} |
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
static NSString *const kYahooPlacesApiAppId = @"zHgnBS4m"; // create one for your app at: https://developer.apps.yahoo.com/dashboard/createKey.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment