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 can target activity get the request code in startActiivtyForResult()?

Hi,

   I am starting an activity with
startActivityForResult(intent,requestcode).
 And i am receiving result onActivityResult() call back .

 The target acivity which gets the intent should get the request code
And based upon the request it has to do the specified operation.

How can target activity get the request code, which is passed to
startActivityForResult().

Any help would appreciated greatly.

-- 

2. How to change color of button borders

Hi,

I am beginner to android, I am trying to change the color of the borders of
button using xml. Do you have any solution?

Thanks,
Umesh

-- 

3. Change the Image of the Progress bar

4. Cupcake/Donut/Eclairs

5. Fwd: Wta help my miley

6. libusb shared library

7. F-Sale: Nexus one BNIB special imlek