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

iOS 码拜 9年前 (2015-05-05) 1165次浏览 0个评论
 

rt

请问如何通过手机获取的经纬度判断当前时区?
10分
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

请问如何通过手机获取的经纬度判断当前时区?
10分
好眼熟的问题哦!
你看看那这个网址:http://tech.cncms.com/shouji/iphone/113013.html
请问如何通过手机获取的经纬度判断当前时区?
10分
这个很简单吧,通过经纬度,正负,还有子午线,很快就能计算出了吧。这个问题也不是新问题了,lz搜一下帖子吧
请问如何通过手机获取的经纬度判断当前时区?
10分
通过手机? GPS或者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(); 
}
请问如何通过手机获取的经纬度判断当前时区?
10分
DateFormat.getDateTimeInstance(DateFormat.FULL,DateFormat.FULL,Locale.CHINA); 
请问如何通过手机获取的经纬度判断当前时区?
姐很无奈的发现需求搞错了
请问如何通过手机获取的经纬度判断当前时区?
10分
引用 7 楼 haitang59 的回复:

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

XBC

请问如何通过手机获取的经纬度判断当前时区?
40分
引用 2 楼 ultrapro 的回复:

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……

不错


CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明请问如何通过手机获取的经纬度判断当前时区?
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!