Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Missing Key And Formatting Errors #25

Open
lorman opened this issue Apr 5, 2014 · 0 comments
Open

Missing Key And Formatting Errors #25

lorman opened this issue Apr 5, 2014 · 0 comments

Comments

@lorman
Copy link

lorman commented Apr 5, 2014

Had to modify this:
protected function _formatParametersForURL() {
if (!empty($this->_address)) {
return self::ADDRESS_FIELD_NAME.'='.$this->_address .
'&'.self::COMPONENTS_FIELD_NAME.'='.$this->_components .
'&'.self::LANGUAGE_FIELD_NAME.'='.$this->_language .
'&'.self::BOUNDS_FIELD_NAME.'='.$this->_bounds .
'&'.self::REGION_FIELD_NAME.'='.$this->_region .
'&'.self::SENSOR_FIELD_NAME.'='.$this->_sensor;
}
else {
return self::LAT_LNG_FIELD_NAME.'='.$this->_latlng .
'&'.self::COMPONENTS_FIELD_NAME.'='.$this->_components .
'&'.self::LANGUAGE_FIELD_NAME.'='.$this->_language .
'&'.self::BOUNDS_FIELD_NAME.'='.$this->_bounds .
'&'.self::REGION_FIELD_NAME.'='.$this->_region .
'&'.self::SENSOR_FIELD_NAME.'='.$this->_sensor;
}

And add $URLToCall = $this->_apiUrl . '/' . $this->_outputType . '?key='.$this->_apiKey . '&' . $urlParameters; @ line 54.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant