Guest User

Untitled

a guest
Jan 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. // get a record's location history
  2.  
  3. [client getHistoryForRecord:@"recordID"
  4. inLayer:@"com.simplegeo.example"
  5. limit:nil // optional limit
  6. cursor:nil // for pagination
  7. callback:[SGCallback callbackWithSuccessBlock:
  8. ^(id response) {
  9. // you've got location history!
  10. // to create an array of SGPoint objects...
  11. NSArray *locations = [NSArray arrayWithSGCollection:response
  12. type:SGCollectionTypePoints];
  13. } failureBlock^(NSError *error) {
  14. // handle failure
  15. }]];
Add Comment
Please, Sign In to add comment