Skip to content

Has anyone used it with Parse? #13

@joaopaulogalvao

Description

@joaopaulogalvao

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions