Created
October 11, 2011 17:44
-
-
Save emilepetrone/1278819 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
// add a place | |
SGPlace *place = [SGPlace placeWithName:@"SimpleGeo Headquarters" | |
point:[SGPoint pointWithLat:37.772445 lon:-122.405913]]; | |
[place setClassifiers:***arrayOfClassifierDictionaries***] // optional | |
[place setProperties:***propertiesDictionary***] // optional | |
[place setTags:***arrayOfTags***]; // optional | |
[client addPlace:place | |
callback:[SGCallback callbackWithSuccessBlock: | |
^(id response) { | |
// addition confirmed; SG handle provided | |
} failureBlock:^(NSError *error) { | |
// addition failed | |
}]]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment