public function setOrigins(array $origins)
    {
        $this->origins = array();

        foreach ($origins as $origin) {
            $this->addOrigin($origin);
        }
    }
public function setOrigins(array $origins)
    {
        $this->origins = array();

        foreach ($origins as $origin) {
            $this->addOrigin($origin);
        }
    }
public function setOrigins ( array $ origins ) { $ this -> origins = array ( ) ; foreach ( $ origins as $ origin ) { $ this -> addOrigin ( $ origin ) ; } }
Sets the distance matrix routes.

@param array $origins The distance matrix origins.
Sets the distance matrix routes .