title: MatrixDistance API from Google for iOS
body: <p>I am trying to build an app with a map in which the user would select his origin address and destination address.. It all works fine, but I can't access the Google API Distance Matrix.. </p>
  
  <p>I am try with following:</p>
  
  <pre><code>NSString *urlPath = [NSString stringWithFormat:@"/maps/api/distancematrix/xml?origins=%@=%@&amp;mode=driving&amp;language=en-EN&amp;sensor=false" ,polazisteField.text , odredisteField.text];
  NSURL *url = [[NSURL alloc]initWithScheme:@"http" host:@"maps.googleapis.com" path:urlPath];
  
  NSMutableURLRequest *request = [[[NSMutableURLRequest alloc]init]autorelease];
  [request setURL:url];
  [request setHTTPMethod:@"GET"];
  
  NSURLResponse *response ;
  NSError *error;
  NSData *data;
  data = [NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error];
  
  NSString *result = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
  address.text = result;
  </code></pre>
  
  <p>, but have no luck, any idea how to resolve this?</p>