public function populate($countryCode)
    {
        $countryCode = strtoupper($countryCode);
        $downloadedFilePath = $this->downloadFile($countryCode);
        $extractedPath = $this->extractFile($downloadedFilePath);

        $rootLocation = $this
            ->loadLocationsFrom(
                $countryCode,
                $extractedPath
            );

        return $rootLocation;
    }
public function populate($countryCode)
    {
        $countryCode = strtoupper($countryCode);
        $downloadedFilePath = $this->downloadFile($countryCode);
        $extractedPath = $this->extractFile($downloadedFilePath);

        $rootLocation = $this
            ->loadLocationsFrom(
                $countryCode,
                $extractedPath
            );

        return $rootLocation;
    }
public function populate ( $ countryCode ) { $ countryCode = strtoupper ( $ countryCode ) ; $ downloadedFilePath = $ this -> downloadFile ( $ countryCode ) ; $ extractedPath = $ this -> extractFile ( $ downloadedFilePath ) ; $ rootLocation = $ this -> loadLocationsFrom ( $ countryCode , $ extractedPath ) ; return $ rootLocation ; }
Populate a country.

@param string $countryCode Country Code

@return LocationInterface Root location
Populate a country .