GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Webservice time out ?  XML
Forum Index -> General
Author Message
Lideln



Joined: 15/03/2013 11:34:09
Messages: 2
Offline

Hi,

For a few days now, I have been experiencing time out using the webservice :
Services_GeoNames_HTTPException: Unable to connect to tcp://ws.geonames.org:80. Error: Connection timed out in /usr/local/lib/php/Services/GeoNames.php on line 271


Does anyone have an idea about that?
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

This domain is slow since last Sunday because of too many requests. This domain is obsolete and was replaced 2 years ago with the domain api.geonames.org. The api subdomain requires an application identifier to protect the server from heavy usage by single applications.

You should use the api.geonames.org domain:
http://geonames.wordpress.com/2011/01/28/application-identification-for-free-geonames-web-services/

[WWW]
Lideln



Joined: 15/03/2013 11:34:09
Messages: 2
Offline

Thank you! I guess I was using an older version of the PHP GeoNames library.

I am now using:
Code:
 $oGeo = new Services_GeoNames('my_user_name');
 $oGeo->url = 'http://api.geonames.org';
 

 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team