A Java port of the mapbox polylabel: a fast algorithm for finding the pole of inaccessibility of a polygon
public class Example {
public static void main() {
Polygon polygon = readPolygon(); // Get polygon data from somewhere.
Point p = Polylabel.polylabel(polygon, 1);
}
}