public function setWaypoints(array $waypoints = array())
    {
        $this->waypoints = array();

        foreach ($waypoints as $waypoint) {
            $this->addWaypoint($waypoint);
        }
    }