Add methods to get heading along a polyline (at a specified distance
from begin or end.