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. How to track down: java.lang.IllegalArgumentException: View not attached to window manager

Hi,

  I am wondering how to track down this IAE? It doesn't mention my code
(com.newsrob.*) in the stack trace.

  Is there anymore information that I can automatically gather and include
in the bug reports to get a better understanding why this happens?

Cheers,
Mariano

-- Android Version: sdk=3, release=1.5, inc=146733
-- Memory free: 0.67MB total: 3.44MB max: 16.00MB-- Thread State: RUNNABLE
-- NewsRob Version: 2.1.2/212
-- Job: Mark All As Read
-- Stacktrace:
java.lang.IllegalArgumentException: View not attached to window manager
at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:356)
at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:201)
at android.view.Window$LocalWindowManager.removeView(Window.java:400)
at android.app.Dialog.dismissDialog(Dialog.java:268)
at android.app.Dialog.access$000(Dialog.java:69)
at android.app.Dialog$1.run(Dialog.java:103)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3948)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:782)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540)
at dalvik.system.NativeStart.main(Native Method)

--~--~---------~--~----~------------~-------~--~----~

2. Java Swing/AWT class on Android

Hi..
I googled and found that Android does not support the Java AWT and Java
Swing packages.
I am developing an application using Java swing for running on Ubuntu Linux.
I require the same application to be able to run on Android OS also (After
converting to Dex format and getting the .apk package).

Is it possible to integrate the Java Swings package in Android (Dalvik VM)?
Has anybody tried this out?

Regards,
Vaidya

--~--~---------~--~----~------------~-------~--~----~

3. What is the best way to perfrmo a query on a Pepole.

4. debugger not working

5. Cupcake wiggly layout

6. How, technically, is cupcake pushed/pulled to phone?

7. How to redirect audio to bluetooth headset?