GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Requesting timezone Info for China is returning Error  XML
Forum Index -> General
Author Message
CHolt



Joined: 28/08/2007 20:13:20
Messages: 7
Offline

If you make the following request from the timezone webservice it fails with the error:

status message="invalid countrycode" value="12"

Request:

http://ws.geonames.org/timezone?lat=31.143333&lng=128.688611

marc



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

The problem is that this location resolves to the ocean. To determine the timezone we first check which country the lat/lng is in to find the correct timezone for the country.
In this case we don't find a country and cannot proceed with determining the timezone.

Cheers

Marc

[WWW]
CHolt



Joined: 28/08/2007 20:13:20
Messages: 7
Offline

So sorry that was a typo. I double checked it so many times and didn't see it. It should be 121.68..
Thanks for the reply.
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team