GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Incorrect response from api.geonames.org/timezoneJSON  XML
Forum Index -> Postal Codes
Author Message
opotemkin



Joined: 10/10/2017 19:34:44
Messages: 1
Offline

Hi! i make request with api

http://api.geonames.org/timezoneJSON?lat=47.106719&lng=51.90313
and see response:
{
sunrise: "2017-10-10 07:42",
lng: 51.90313,
countryCode: "KZ",
gmtOffset: 5,
rawOffset: 5,
sunset: "2017-10-10 18:55",
timezoneId: "Asia/Atyrau",
dstOffset: 5,
countryName: "Kazakhstan",
time: "2017-10-10 22:38",
lat: 47.106719
}



And if I make request with "ws", but I get another timezoneId from response:
{
sunrise: "2017-10-10 07:42",
lng: 51.90313,
countryCode: "KZ",
gmtOffset: 5,
rawOffset: 5,
sunset: "2017-10-10 18:55",
timezoneId: "Asia/Oral",
dstOffset: 5,
countryName: "Kazakhstan",
time: "2017-10-10 22:39",
lat: 47.106719
}

My server returns wrong to me: "Do not know timezone "Asia/Atyrau".
And why api and ws returns different answers?
Thanks
marc



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

Hi

The ws.geonames.org server has been deprecated some years ago. At the moment it has an older version of the software. Please switch to the api.geonames.org domain.

Best Regards

Marc

[WWW]
 
Forum Index -> Postal Codes
Go to:   
Powered by JForum 2.1.5 © JForum Team