Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmetardal/994886 to your computer and use it in GitHub Desktop.
Save ahmetardal/994886 to your computer and use it in GitHub Desktop.
[[SSLocationManager sharedManager] addDelegate:self];
#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...");
}
[[SSLocationManager sharedManager] startUpdatingCurrentLocation];
@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;
}
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