2011-10-28 33 views
0

我们可以使用任何由Google支持的Web服务或类似的东西来找到地球上的区域。就像我可以找到使用的高程和方向。使用谷歌地图和android查找区域?

String url = "http://maps.googleapis.com/maps/api/elevation/xml?" + 
       "locations="+String.valueOf(latitude)+"," 
       +String.valueOf(longitude) 
       +"&sensor=true"; 

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
       Uri.parse("http://maps.google.com/maps?saddr="+one+","+two+"&daddr="+three+","+four+"")); 
       startActivity(intent); 

那么有没有发现有关区域的任何帮助吗?下面

回答

1

是在Android的谷歌地图开始好的教程,并为你学习你可以找到谷歌API对地方的海拔和地点附近的位置

http://www.vogella.de/articles/AndroidLocationAPI/article.html

+0

但其实我是想找到区。按地区划分的 – xkrlaix

+0

你是指城市吗?您可以将地理位置映射到城市地区和地点 – 2011-12-05 14:15:19