title: Google map SDK - Path not accurate
body: <p>I am trying to show path between two locations but it is not accurate.  </p>
  
  <pre><code>if(center.latitude != 0 &amp;&amp; center.longitude != 0)
              {
              NSString *urlString = [NSString stringWithFormat:
                                     @"%@?origin=%f,%f&amp;destination=%f,%f&amp;sensor=true&amp;key=%@",
                                     @"https://maps.googleapis.com/maps/api/directions/json",
                                     center.latitude,
                                     center.longitude,
                                     center1.latitude,
                                     center1.longitude,
                                     KGoogleMapServerKey];
  
              NSError *error;
                  NSDictionary *json =[NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:urlString] options:NSDataReadingUncached error:&amp;error] options:NSJSONReadingMutableContainers error:&amp;error];
              if(json[@"routes"] != nil &amp;&amp; [json[@"routes"] count] &gt; 0)
              {
                  GMSPath *path =[GMSPath pathFromEncodedPath:json[@"routes"][0][@"overview_polyline"][@"points"]];
                  GMSPolyline *singleLine = [GMSPolyline polylineWithPath:path];
                  singleLine.strokeWidth = 7;
                  singleLine.strokeColor = [UIColor colorWithRed:56.0/255.0 green:163.0/255.0 blue:249.0/255.0 alpha:1.0];
                  singleLine.map = mapViewGoogle;
              }  
  </code></pre>
  
  <p>This is the path I am getting :  </p>
  
  <p><a href="https://i.stack.imgur.com/tD2yo.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tD2yo.png" alt="enter image description here"></a>  </p>
  
  <p>As you can see, the blue line (path) does not go at the destination.<br>
  How to fix this ?</p>