iOS - Build polyline from Google Maps Directions API response
<p>How can I get a <code>polyline</code> out of the Directions API JSON response?</p>

<p>Using the <code>overview_polyline</code> is not an option as it is only a smoothened version of the actual <code>polyline</code>.</p>

<p>I also tried getting the start and end location coordinates from the steps, however those will only give me a very inaccurate <code>polyline</code>, because they only contain a few coordiantes.</p>

<p>How can I get an accurate <code>polyline</code> out of the Directions response?</p>

<p><strong>EDIT</strong>: Using @SaxonDruce answer, I can get accurate polylines however, they look like this: </p>

<p><a href="https://i.stack.imgur.com/aR1fM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aR1fM.jpg" alt="enter image description here"></a></p>