Android Open Source - Locations Location Info






From Project

Back to project page Locations.

License

The source code is released under:

Apache License

If you think the Android project Locations listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.ixming.android.location.baidu;
/* w  ww. ja  v a 2  s .c o m*/
import com.baidu.location.BDLocation;

public class LocationInfo {

  private BDLocation mLocation;
  
  LocationInfo(BDLocation loc) {
    mLocation = loc;
  }
  
  public double getLatitude() {
    return mLocation.getLatitude();
  }
  
  public double getLongitude() {
    return mLocation.getLongitude();
  }
  
  /**
   * ??????????????
   */
  public String getAddress() {
    return mLocation.getAddrStr();
  }
  
  /**
   * ???????
   */
  public String getProvince() {
    return mLocation.getProvince();
  }
  
  /**
   * ??????
   */
  public String getCity() {
    return mLocation.getCity();
  }
  
  /**
   * ??????????????????
   */
  public String getDistrict() {
    return mLocation.getDistrict();
  }
}




Java Source Code List

org.ixming.android.location.baidu.LocationInfo.java
org.ixming.android.location.baidu.LocationModule.java
org.ixming.android.location.baidu.OnLocationLoadListener.java