首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

请教怎么通过手机获取的经纬度判断当前时区

2012-04-23 
请问如何通过手机获取的经纬度判断当前时区?rt[解决办法]Take a look at Geonames.orgIts a free webserv

请问如何通过手机获取的经纬度判断当前时区?
rt

[解决办法]
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


[解决办法]
好眼熟的问题哦!!
你看看那这个网址:http://tech.cncms.com/shouji/iphone/113013.html
[解决办法]
这个很简单吧,通过经纬度,正负,还有子午线,很快就能计算出了吧。这个问题也不是新问题了,lz搜一下帖子吧
[解决办法]
通过手机? GPS或者network

Java code
private String getLocationInfo() {     LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);     Location location = locationManager             .getLastKnownLocation(LocationManager.NETWORK_PROVIDER);     return location.getLatitude() + "," + location.getLongitude(); }
[解决办法]
DateFormat.getDateTimeInstance(DateFormat.FULL,DateFormat.FULL,Locale.CHINA);
[解决办法]
探讨

姐很无奈的发现需求搞错了

[解决办法]
探讨
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……

热点排行