Added function to calculate approaches to waypoints.