validate

fun validate(polygon: DrawnPolygon): String?

Why polygon cannot be used in an overlay (a line crosses itself, a hole is outside, a ring has too few points...), or null if it can.