Happy 8th birthday to the Maveryx Community! Take a walk down memory lane in our birthday blog, and don't miss out on the awesome birthday present that all Maveryx Community members get to take advantage of!
I used a non-macro approach, mainly relying on the geometrical rules. I initially had 544 instead of 516. The difference is due to very thin triangles. So it is an interesting case of which tolerance level to set to test for linearity.
I initially tried to exclude invalid triangles (where the points were all collinear) by using the side lengths, but spatial length/area don't work because these are lat/lons rather than cartesian coordinates!