Try snapping to average of all nearby points
Weight by similarity of angles.
Minimal parsing in C