Thursday, December 19, 2013

How to determine the current time zone to get through the phone's latitude and longitude?

rt
Reply:
The reply was deleted at the moderator 2011-08-22 10:35:56

Reply:
Take a look at Geonames.org

It's a free webservice that allow you to get a lot of informations from a long / lat

They also provide a free (and open source) Java Client for GeoNames Webservices library (library for other language also provided: ruby, python, perl, lisp ...)

Here's some info you can get from long / lat: (complete list of webservices here)

Find nearest Address
Find nearest Intersection
Find nearby Streets
Elevation
Timezone


Reply:
Oh so familiar problem! !
You see that this URL: http://tech.cncms.com/shouji/iphone/113013.html
Reply:
This is very simple, by latitude and longitude, positive and negative, as well as Meridian, will soon be able to calculate it. This problem is not a new problem, lz found some posts it
Reply:
By phone? GPS or network

 
private String getLocationInfo () {
LocationManager locationManager = (LocationManager) getSystemService (Context.LOCATION_SERVICE);
Location location = locationManager
. GetLastKnownLocation (LocationManager.NETWORK_PROVIDER);
return location.getLatitude () + "," + location.getLongitude ();
}


 
private String getLocationInfo () {
LocationManager locationManager = (LocationManager) getSystemService (Context.LOCATION_SERVICE);
Location location = locationManager
. GetLastKnownLocation (LocationManager.GPS_PROVIDER);
Log.i ("location:", location.getLatitude () + "," + location.getLongitude ());
return location.getLatitude () + "," + location.getLongitude ();
}

Reply:
DateFormat.getDateTimeInstance (DateFormat.FULL, DateFormat.FULL, Locale.CHINA);
Reply:
very helpless sister found a mistake demand
Reply:
reference to the 7th floor haitang59 reply:
found very helpless sister needs wrong
XBC
Reply:
The reply was deleted at 2011-11-11 11:43:26 moderator

Reply:
reference to the second floor ultrapro reply:
Take a look at Geonames.org

It's a free webservice that allow you to get a lot of informations from a long / lat

They also provide a free (and open source) Java Client for GeoNames Webservices lib ......


Not bad
Reply:
The reply was deleted at 2012-01-12 09:38:57 moderator

No comments:

Post a Comment