src/Services/Directions/Directions.php
protected function buildDirectionsResponse(\stdClass $directionsResponse)
    {
        $routes = $this->buildDirectionsRoutes($directionsResponse->routes);
        $status = $directionsResponse->status;

        return new DirectionsResponse($routes, $status);
    }
protected function buildDirectionsResponse(\stdClass $directionsResponse)
    {
        $routes = $this->buildDirectionsRoutes($directionsResponse->routes);
        $status = $directionsResponse->status;

        return new DirectionsResponse($routes, $status);
    }
Builds the directions response according to the normalized directions API results.

@param \stdClass $directionsResponse The normalied directions response.

@return \Ivory\GoogleMap\Services\Directions\DirectionsResponse The builded directions response.