osmlint
osmlint copied to clipboard
[Validator] Polygon self-intersecting
Exmaple http://www.openstreetmap.org/way/443379147, I think this should be general.
We can easily spot these polygons by looking at the number of edges per node, i.e. edges > 2 then flag.

turf.kinks will do the trick