[R] package to convert coordiantes to timezone

Thomas Steiner finbref.2006 at gmail.com
Tue Aug 4 09:22:54 CEST 2009


Thanks you, this helps.
Great,
Thomas


2009/8/3 Michael Denslow <michael.denslow at gmail.com>:
> Hi Thomas,
>
> On Sun, Aug 2, 2009 at 11:02 AM, Thomas Steiner<finbref.2006 at gmail.com> wrote:
>> Is there a R-package with a function that returns me the timezone, if
>> I hand over longitude and latitude?
>> I know online services like
>> http://ws.geonames.org/timezone?lat=-38.01&lng=147 and
>> http://www.earthtools.org/webservices.htm#timezone and wodner if this
>> exists for R too.
>> Thanks for helping,
>> thomas
>>
>
> There is a geonames package.
>
>> library(geonames)
> Loading required package: rjson
>> GNtimezone(-38.01,147)
>              time countryName rawOffset dstOffset countryCode
> gmtOffset lng          timezoneId    lat
> 1 2009-08-03 10:23   Australia        10        10          AU
> 11 147 Australia/Melbourne -38.01
> Warning message:
> In readLines(u) :
>  incomplete final line found on
> 'http://ws.geonames.org/timezoneJSON?lat=-38.01&lng=147'
>
> Not sure why I get this error but I think this is what you are after,
>
> Michael
>
> _____________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>
> --
> Michael Denslow
>
> Graduate Student
> I.W. Carpenter Jr. Herbarium [BOON]
> Department of Biology
> Appalachian State University
> Boone, North Carolina U.S.A.
>
> -- AND --
>
> Communications Manager
> Southeast Regional Network of Expertise and Collections
> sernec.org
>




More information about the R-help mailing list