Detect tap on GMSPolyline in Swift? : <p>I'm struggling with detecting a tap on a GMSPolyline drawn on my Google map, it works just fine with GMSpolygones, but the same approach doesn't seem to work with polyline. My current approach, which works for polygones, is: </p>

<pre><code>if (GMSGeometryContainsLocation(coordinate, polygon.path!, false)) {
    ...
}
</code></pre>

<p>Any suggestions how to detect taps on a polyline? Or just close to it?</p>
