这是您问题的示例解决方案.
要么
List<Address> foundGeocode = null;
/* find the addresses by using getFromLocationName() method with the given address*/
foundGeocode = new Geocoder(this).getFromLocationName("address here", 1);
foundGeocode.get(0).getLatitude(); //getting latitude
foundGeocode.get(0).getLongitude();//getting longitude
Run Code Online (Sandbox Code Playgroud)
有关详细信息Geocoder
| 归档时间: |
|
| 查看次数: |
7732 次 |
| 最近记录: |