added api to get all waypoints at once