Added algorithm for determining points to search along route.