Edit report at https://pear.php.net/bugs/bug.php?id=20179&edit=1
ID: 20179
Updated by: daniel.oconnor@gmail.com
Reported By: stevehunter@outlook.com
Summary: API host ws.geonames.org is no longer valid
Status: Open
Type: Bug
Package: Services_GeoNames
Package Version: 1.0.1
PHP Version: Irrelevant
Roadmap Versions:
New Comment:
Can you open a pull request please?
Previous Comments:
------------------------------------------------------------------------
[2014-01-17 14:34:26] stevehunter
Description:
------------
This package uses the host ws.geonames.org whereas it should be using
the newer api.geonames.org. As of 17th Jan 2014, ws.geonames.org seems
to have been removed from DNS, causing the following exception to be
raised:
Services_GeoNames_HTTPException: Unable to connect to
tcp://ws.geonames.org:80. Error: php_network_getaddresses: getaddrinfo
failed: Name or service not known
The fix is to change:
public $url = 'http://ws.geonames.org';
to this:
public $url = 'http://api.geonames.org';
in Services/GeoNames.php
------------------------------------------------------------------------