Better "centerpoint" than centroid : <p>I'm using the centroid of polygons to attach a marker in a map application. This works definitely fine for convex polygons and quite good for many concave polygons.</p>

<p>However, some polygons (banana, donut) obviously don't produce the desired result: The centroid is in these cases <em>outside</em> the polygons area.</p>

<p>Does anybody know a better approach to find a suitable point <em>within</em> any polygons area (which may contain holes!) to attach a marker?</p>

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