Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // get a record's location history
- [client getHistoryForRecord:@"recordID"
- inLayer:@"com.simplegeo.example"
- limit:nil // optional limit
- cursor:nil // for pagination
- callback:[SGCallback callbackWithSuccessBlock:
- ^(id response) {
- // you've got location history!
- // to create an array of SGPoint objects...
- NSArray *locations = [NSArray arrayWithSGCollection:response
- type:SGCollectionTypePoints];
- } failureBlock^(NSError *error) {
- // handle failure
- }]];
Add Comment
Please, Sign In to add comment