src/Services/Directions/DirectionsRoute.php
public function setWarnings(array $warnings)
    {
        $this->warnings = array();

        foreach ($warnings as $warning) {
            $this->addWarning($warning);
        }
    }
public function setWarnings(array $warnings)
    {
        $this->warnings = array();

        foreach ($warnings as $warning) {
            $this->addWarning($warning);
        }
    }
Sets the route warnings.

@param array $warnings The route warnings.