One thing I wanted to say... if one of the two points in question happens to have a turn instruction (as in my example above), there's no way to predict if the first or the second point will be the one that contains the turn instruction. So if any changes are made that delete duplicate waypoints, then one would need to make sure the turn instruction isn't lost.


Nope. Read the python script.