protected function buildDirectionsRoutes(array $directionsRoutes)
    {
        $results =  array();
        foreach ($directionsRoutes as $directionsRoute) {
            $results[] = $this->buildDirectionsRoute($directionsRoute);
        }

        return $results;
    }
protected function buildDirectionsRoutes(array $directionsRoutes)
    {
        $results =  array();
        foreach ($directionsRoutes as $directionsRoute) {
            $results[] = $this->buildDirectionsRoute($directionsRoute);
        }

        return $results;
    }
protected function buildDirectionsRoutes ( array $ directionsRoutes ) { $ results = array ( ) ; foreach ( $ directionsRoutes as $ directionsRoute ) { $ results [ ] = $ this -> buildDirectionsRoute ( $ directionsRoute ) ; } return $ results ; }
Builds the directions routes according to the normalized directions API routes.

@param \stdClass $directionsRoutes The normalized directions routes.

@return array The builded directions routes.
Builds the directions routes according to the normalized directions API routes .