Program to convert waypoints