GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Reverse Geocode problem with city JSON lookup  XML
Forum Index -> General
Author Message
tmargolis



Joined: 31/08/2008 03:16:57
Messages: 2
Offline

Hello,

I'm trying to get nearby city names by clicking on a google map and calling http://ws.geonames.org/citiesJSON with the appropriate parameters.

it seems to work about half the time, but the other half i get a javascript error: jData.geonames is undefined

here's a link to my test: http://crca.ucsd.edu/~todd/facebook/mapTest/

thanks in advance!
-todd
marc



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

todd

I assume it is query timeout exception. This service is rather resource intensive and in order to avoid very long running requests there is a query timeout after some seconds.
In case of a timeout you get the following json result:

ws_results({"status": {
"message": "QueryTimeoutException",
"value": 13
}});


Marc

PS: if you are using firefox I recommend firebug to debug javascript problems: http://getfirebug.com/

[WWW]
tmargolis



Joined: 31/08/2008 03:16:57
Messages: 2
Offline

Hi Marc,

Yea, it appears to be a timeout exception. it's not as bad today, but still happens every now & then. is there any solution to this problem? seems like installing the database on my own server might solve it, right?

cheers,
-todd

btw, firebug rocks!
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team