src/Services/Directions/DirectionsRequest.php
public function setProvideRouteAlternatives($provideRouteAlternatives = null)
    {
        if (!is_bool($provideRouteAlternatives) && ($provideRouteAlternatives !== null)) {
            throw DirectionsException::invalidDirectionsRequestProvideRouteAlternatives();
        }

        $this->provideRouteAlternatives = $provideRouteAlternatives;
    }
public function setProvideRouteAlternatives($provideRouteAlternatives = null)
    {
        if (!is_bool($provideRouteAlternatives) && ($provideRouteAlternatives !== null)) {
            throw DirectionsException::invalidDirectionsRequestProvideRouteAlternatives();
        }

        $this->provideRouteAlternatives = $provideRouteAlternatives;
    }
Sets if the directions request provides route alternatives.

@param boolean $provideRouteAlternatives TRUE if the directions request provides route alternatives else FALSE.

@throws \Ivory\GoogleMap\Exception\DirectionsException If the provide route alternatives flag is not valid.