src/ClientAdapters/ClientAdapter.php
protected function buildRequestURL($latitude, $longitude, \DateTime $time = NULL, array $parameters = NULL)
    {
        $requestUrl = Overcast::API_ENDPOINT . Overcast::getApiKey() . '/' . $latitude . ',' . $longitude;

        if (NULL !== $time) {
            $requestUrl .= ',' . $time->getTimestamp();
        }

        $requestUrl .= '?' . $this->buildRequestParameters($parameters);

        return $requestUrl;
    }
protected function buildRequestURL($latitude, $longitude, \DateTime $time = NULL, array $parameters = NULL)
    {
        $requestUrl = Overcast::API_ENDPOINT . Overcast::getApiKey() . '/' . $latitude . ',' . $longitude;

        if (NULL !== $time) {
            $requestUrl .= ',' . $time->getTimestamp();
        }

        $requestUrl .= '?' . $this->buildRequestParameters($parameters);

        return $requestUrl;
    }
protected function buildRequestURL ( $ latitude , $ longitude , \ DateTime $ time = NULL , array $ parameters = NULL ) { $ requestUrl = Overcast :: API_ENDPOINT . Overcast :: getApiKey ( ) . '/' . $ latitude . ',' . $ longitude ; if ( NULL !== $ time ) { $ requestUrl .= ',' . $ time -> getTimestamp ( ) ; } $ requestUrl .= '?' . $ this -> buildRequestParameters ( $ parameters ) ; return $ requestUrl ; }
Builds the URL to request from the Dark Sky API

@param float $latitude
@param float $longitude
@param \DateTime|NULL $time
@param array|NULL $parameters

@return string
Builds the URL to request from the Dark Sky API