Created
September 14, 2011 05:30
-
-
Save pius/1215920 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
SimpleGeo *client = [SimpleGeo clientWithConsumerKey:@"MYKEY" consumerSecret:@"MYSECRET"]; | |
SGStorageQuery *sgquery = [SGStorageQuery queryWithAddress:@"41 Decatur St, San Francisco, CA" | |
layer:@"MYLAYER"]; | |
SGCallback *callback = [SGCallback callbackWithSuccessBlock: | |
^(id response) { | |
NSLog(@"simplegeo responded"); | |
} failureBlock:^(NSError *error) { | |
NSLog(@"failed to find in SimpleGeo"); | |
}]; | |
NSLog(@"about to make query"); | |
[client getRecordsForQuery:sgquery callback:callback]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment