fix #2583: coordinates format switching for waypoints