Position *positionPalencia = [[Position alloc] initWithTitle:@"Palencia" withSummary:@"" withUrl:nil withLatitude:0 withLongitude:0 withAltitude:0 withSource:nil];
PoiItem *poiPalencia = [[PoiItem alloc] initWithLatitude:38.0088161 longitude:-77.5269538 altitude:0 position:positionPalencia];
Position *positionPalencia = [[Position alloc] initWithTitle:@"Palencia" withSummary:@"" withUrl:nil withLatitude:0 withLongitude:0 withAltitude:0 withSource:nil];
PoiItem *poiPalencia = [[PoiItem alloc] initWithLatitude:38.0088161 longitude:-77.5269538 altitude:15500 position:positionPalencia];
- (id)initCoordinateWithRadialDistance:(double)newRadialDistance inclination:(double)newInclination azimuth:(double)newAzimuth
can I use the above in PoiItem definition with position since Position seems the only way to set title, summary and URL?
Example of what I am asking:
Position *positionPalencia = [[Position alloc] initWithTitle:@"Palencia" withSummary:@"" withUrl:nil withLatitude:0 withLongitude:0 withAltitude:15500 withSource:nil];
PoiItem *poiPalencia = [[PoiItem alloc] initCoordinateWithRadialDistance:3000 inclination:M_PI/3 azimuth:30];
//but how to indicate that poiPalencia is for Position positionPalencia?
Any help would be greatly appreciated!