开发者

How to Obtain The User Address By Knowing their Longitude and Latitude

开发者 https://www.devze.com 2023-03-25 18:38 出处:网络
I am using LocationManager in android application to obtain the user current coordinates. It works fine for me but the second step I 开发者_JAVA技巧want to display the formatted address to the user in

I am using LocationManager in android application to obtain the user current coordinates. It works fine for me but the second step I 开发者_JAVA技巧want to display the formatted address to the user instead of displaying it in logn and lat format. can you pleeease help me ?


try this:

Geocoder geocoder = new Geocoder(context);
List<Address> address = geocoder.getFromLocation(Latitude, Longitude, 1);       
0

精彩评论

暂无评论...
验证码 换一张
取 消