Guest User

Untitled

a guest
Jan 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. // get advanced demographic information for an address
  2.  
  3. SGContextQuery *query = [SGContextQuery queryWithAddress:@"41 Decatur Street, San Francisco, CA"];
  4. [query setFilters:[NSArray arrayWithObject:SGContextFilterDemographics]];
  5. [query setACSTableIDs:[NSArray arrayWithObjects:@"B05005", @"B06009", @"B07001", nil]];
  6.  
  7. [client getContextForQuery:query
  8. callback:[SGCallback callbackWithSuccessBlock:
  9. ^(id response) {
  10. // you've got demographics!
  11. } failureBlock^(NSError *error) {
  12. // handle failure
  13. }]];
Add Comment
Please, Sign In to add comment