How to get the timezone from the latitude and longitude?

by Prayag Pathak » Sat, 07 May 2011 05:15:48 GMT


Sponsored Links
 Hi guys,

I am creating an application in which I need to implement a
functionality in which I will get the latitude and longitude through
GPS on a button click. Now, I want to get the timezone of the place
from the latitude and longitude.

I tried to call webservice, but its not working properly.

It would be great if someone could suggest a solution either by
implementing a web service or without implementing it.

Regards,

Prayag

-- 



Re: How to get the timezone from the latitude and longitude?

by Streets Of Boston » Sat, 07 May 2011 05:25:08 GMT


 Another way of doing it is to just get the phone's default timezone. Note 
that the timezone could be set (incorrectly) by the user.

If this is not possible and you have to use the user's location, just google 
it: "gps timezone". Plenty of info available there.
E.g. i found this in just 1 minute:

 http://www.earthtools.org/timezone/< ;latitude>/<longitude>



-- 


Sponsored Links


Re: How to get the timezone from the latitude and longitude?

by TreKing » Sat, 07 May 2011 05:27:18 GMT


Re: How to get the timezone from the latitude and longitude?

by Prayag Pathak » Sat, 07 May 2011 05:30:39 GMT


 Thanks man,

I actually am trying to implement this web service since long. But it
gave wierd errors. I also tried to implement it using ksoap2 library.
But in vain. It would be great if someone could guide me more on using
ksoap2 or else let me know that earthtools.org provides which kind of
web service(SOAP or REST).

Regards,

Prayag




-- 



Re: How to get the timezone from the latitude and longitude?

by Prayag Pathak » Sat, 07 May 2011 05:47:28 GMT


 Yo thanks guys!

I could figure that out!

Once again thank you very much for the resources!

Regards,

Prayag





-- 



Re: How to get the timezone from the latitude and longitude?

by Streets Of Boston » Sat, 07 May 2011 06:04:32 GMT


 earthtools uses a REST like interface with XML as content.

Maybe you can find more here:
 http://www.programmableweb.com 

-- 



Re: How to get the timezone from the latitude and longitude?

by Prayag Pathak » Thu, 19 May 2011 23:20:14 GMT


 Hey man!!!

Really a great website! Btw, you have got an interesting name! Streets
of Boston! :) haha! kiddin!
But definitely, a great website.

Thanks again!

Regards,

Prayag




-- 



Other Threads

1. Making Video files Android ready for playback over HTTP

MP4Box -hint does the trick:

http://www.videohelp.com/tools/mp4box

More info here:

https://help.ubuntu.com/community/AndroidVideoEncoding




-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.1 Available!

-- 

2. getting package name in included .jar fil

If i create a service and in it use the method
context.getPackageName() or context.getPackageCodePath(). If i then
compile that service into a .jar file and someone else includes it in
their app will those methods return the original package of the
service or that package that they have been included in?

Any help would be great,
Thanks

-- 

3. Problems while working with Android 2.2 Froyo - Need help - Thanks very much!

4. Android, mini2440, Android Debugger Bridge (ADB)

5. How to attach custom map on MapView? Can MapView be used when phone is offline?

6. Elevo bakal bikin laptop berbasis Android. Yang pertama bukan sih?

7. Elevo bakal bikin laptop berbasis Android. Yang pertama bukan sih?