Skip to content

Instantly share code, notes, and snippets.

@emilepetrone
Created October 11, 2011 17:44
Show Gist options
  • Save emilepetrone/1278819 to your computer and use it in GitHub Desktop.
Save emilepetrone/1278819 to your computer and use it in GitHub Desktop.
// 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