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.
![arclass](https://camo.githubusercontent.com/635b8b4e7a9c5b5c9e0e2d0a1d173ffa361e583b628e8e39f017b960e8ad9fd5/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343432313936322f323130393833362f65386339653738612d386666372d313165332d393330342d3962383065396530333330392e706e67)
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.