Skip to content

Instantly share code, notes, and snippets.

@pius
Created September 14, 2011 05:30
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 pius/1215920 to your computer and use it in GitHub Desktop.
Save pius/1215920 to your computer and use it in GitHub Desktop.
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