Created
October 11, 2011 17:41
-
-
Save emilepetrone/1278803 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
// get Context for a point | |
SGContextQuery *query = [SGContextQuery queryWithPoint:[SGPoint pointWithLat:37.772445 lon:-122.405913]]; | |
[client getContextForQuery:query | |
callback:[SGCallback callbackWithSuccessBlock: | |
^(id response) { | |
// you've got Context! | |
// to create an SGContext object... | |
SGContext *context = [SGContext contextWithDictionary:response]; | |
} failureBlock:^(NSError *error) { | |
// handle failure | |
}]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment