如何扭转地理code在谷歌地图API 2机器人 [英] How to reverse Geocode in google maps api 2 android
本文介绍了如何扭转地理code在谷歌地图API 2机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用地图API 2.But我不知道到底该怎么做?任何想法做反向地理编码在我的应用程序?
I want to do reverse geocoding in my app using map api 2.But i dont know exactly how to do that?Any ideas?
推荐答案
使用的地理codeR :
Geocoder geoCoder = new Geocoder(context);
List<Address> matches = geoCoder.getFromLocation(latitude, longitude, 1);
Address bestMatch = (matches.isEmpty() ? null : matches.get(0));
这篇关于如何扭转地理code在谷歌地图API 2机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文