title: How to draw a proper polylines on google maps
body: <p>I have successfully drawn a polyline from point a to point b, but for some reason , it shows linear line not the correct waypoints</p>
  
  <p>Here's the code</p>
  
  <pre><code>let path = GMSMutablePath()
          path.addLatitude(3.1970044, longitude:101.7389365)
          path.addLatitude(3.2058354, longitude:101.729536)
          let polyline = GMSPolyline(path: path)
          polyline.strokeWidth = 5.0
          polyline.geodesic = true
          polyline.map = mapView
  </code></pre>
  
  <p>I was expecting that it would be doing some waypoints, but it just shows straight polylines</p>
  
  <p><a href="https://i.stack.imgur.com/kAjnn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kAjnn.png" alt="enter image description here"></a></p>