Hello guys,
Has anyone used the AR-toolkit with Parse?
I am trying to populate the array with some data coming from Parse, but it did not work.
As I am a newbie, I might be passing some wrong argument to some variables.
In Parse's data browser I can create a class, and then create an object on my code, using its PFObject class.
For each class, in Parse's data browse, I can get values from keys, and the key which inherits from Parse's PFGeoPoint class already contains latitude and longitude.
I am trying the following:
PFObject *coordinates = [PFObject objectWithClassName:@"location"];
NSMutableArray *locationArray = [[NSMutableArray alloc] init];
ARGeoCoordinate *tempCoordinate;
CLLocation *tempLocation;
tempLocation = [[CLLocation alloc] init];
tempLocation = [coordinates objectForKey:@"shopsLocation"];
tempCoordinate = [ARGeoCoordinate coordinateWithLocation:tempLocation locationTitle:[coordinates objectForKey:@"description"]];
[locationArray addObject:tempCoordinate];
I am not finding a way to pass latitude and longitude to tempLocation using {initWithLatitude: longitude:}
tempLocation = [[CLLocation alloc] initWithLatitude:51.500152 longitude:-0.126236];
tempCoordinate = [ARGeoCoordinate coordinateWithLocation:tempLocation locationTitle:@"London"];
[locationArray addObject:tempCoordinate];
as this key "shopsLocation" already contain both.
I really appreciate your help, and thanks for sharing this great library.