0

我知道有办法做到这一点,但我无法在网上找到它,因为每次我尝试搜索它时都会弹出其他东西!

我想要做的是显示如下位置的地址:

街市 123 号,街 12345

我的 android 应用程序的用户可以单击该地址,它将使用手机 gps 从用户的当前位置找到到达该位置的路。

我需要帮助寻找网站等资源...谢谢!

4

2 回答 2

0

What you are looking for is "reverse geocoding" (when I understood you correctly). Check out http://mirnauman.wordpress.com/2012/06/07/android-google-maps-tutorial-part-8-geocoding-and-reverse-geocoding/

于 2013-08-13T09:10:55.557 回答
0

我在这个网站上找到了答案

Android – 使用 linkify 创建链接 | aviyehuda.com

    TextView myLocation = (TextView) findViewById(R.id.textView4);
    myLocation.setText("The addres you want");
    Linkify.addLinks(myLocation , Linkify.MAP_ADDRESSES);
于 2013-08-14T06:33:52.763 回答