Back to project page Locations.
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.
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(); } }