Hi!
Step 9 in the LineLocation encoding is a little broken.
It only works for 2 points. If you have more than 2 points it will only adjust the first 2 points and then move on to step 10 without checking the trailing point pairs if they are more than 15000 meters.