test

C++ code posted
created at 02 Oct 10:38, updated at 06 Oct 14:01

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
  -(void) serviceServerResponse:(NSString*) jsonResponse
  {
    GeoCodingJsonParser* jsonParser = [[[GeoCodingJsonParser alloc] init] autorelease];
    NSArray* objects = [jsonParser fillLocationsArray:jsonResponse]; 
    NSLog(@" serviceServerResponse : response = %@ ",jsonResponse);
    if([objects count]>0) {
        Location* currentLoc = [objects objectAtIndex:0];
        NSLog(@"MInfoCtrl : serviceServerResponse :  %@, %@, %@, %@, %@, %@, %@, %@, %@,%@",currentLoc.houseNumber,currentLoc.strName,currentLoc.road,currentLoc.city,currentLoc.strDesc,currentLoc.postcode,currentLoc.strID,currentLoc.strPhotoName,currentLoc.strTag,currentLoc.strURL);

        NSLog(@"MInfoCtrl : serviceServerResponse : lat : %f, lon : %f, lat : %f, lon :%f",currentLoc.coordinate.latitude,currentLoc.coordinate.longitude,currentLoc.fLatitude,currentLoc.fLongitude);
      }
  }
881 Bytes in 2 ms with coderay