Generates code of MKPolygon from array of objects with lat and lng properties.