GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Timezone api  XML
Forum Index -> General
Author Message
adelh



Joined: 26/05/2011 07:22:56
Messages: 1
Offline

Hi there,

I am using the timezone service but realised that the below returns the wrong DST offset:

http://ws.geonames.org/timezone?lat=30.05&lng=31.25

dstOffset should actually be 2.0 for Egypt.

I have tested this with many other countries and they seem to be correct except this one. If you can fix this it would be much appreciated.
marc



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

First of all you should not use the ws.geonames.org server as it is deprecated, use the server api.geonames.org instead:

http://geonames.wordpress.com/2011/01/28/application-identification-for-free-geonames-web-services/

The dstOffset is deprecated as well and no longer supported:
http://www.geonames.org/export/web-services.html#timezone

It gives the offset at first of July.
gmtOffset: offset to GMT at 1. January (deprecated)
dstOffset: offset to GMT at 1. July (deprecated)

The timezoneId is the relevant piece of information, it refers to the olson timezone database that is included in most programming environments and includes the dst rules.

Best

Marc

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