getting waypoints example