1. <tfoot id='oeykP'></tfoot>

      <i id='oeykP'><tr id='oeykP'><dt id='oeykP'><q id='oeykP'><span id='oeykP'><b id='oeykP'><form id='oeykP'><ins id='oeykP'></ins><ul id='oeykP'></ul><sub id='oeykP'></sub></form><legend id='oeykP'></legend><bdo id='oeykP'><pre id='oeykP'><center id='oeykP'></center></pre></bdo></b><th id='oeykP'></th></span></q></dt></tr></i><div id='oeykP'><tfoot id='oeykP'></tfoot><dl id='oeykP'><fieldset id='oeykP'></fieldset></dl></div>

        <bdo id='oeykP'></bdo><ul id='oeykP'></ul>

        <small id='oeykP'></small><noframes id='oeykP'>

        <legend id='oeykP'><style id='oeykP'><dir id='oeykP'><q id='oeykP'></q></dir></style></legend>
      1. 根据城市、邮编或街道名称获取纬度和经度

        时间:2023-06-27
          <bdo id='24yhc'></bdo><ul id='24yhc'></ul>
          <tfoot id='24yhc'></tfoot>

              <legend id='24yhc'><style id='24yhc'><dir id='24yhc'><q id='24yhc'></q></dir></style></legend>
              <i id='24yhc'><tr id='24yhc'><dt id='24yhc'><q id='24yhc'><span id='24yhc'><b id='24yhc'><form id='24yhc'><ins id='24yhc'></ins><ul id='24yhc'></ul><sub id='24yhc'></sub></form><legend id='24yhc'></legend><bdo id='24yhc'><pre id='24yhc'><center id='24yhc'></center></pre></bdo></b><th id='24yhc'></th></span></q></dt></tr></i><div id='24yhc'><tfoot id='24yhc'></tfoot><dl id='24yhc'><fieldset id='24yhc'></fieldset></dl></div>
            1. <small id='24yhc'></small><noframes id='24yhc'>

                <tbody id='24yhc'></tbody>

                • 本文介绍了根据城市、邮编或街道名称获取纬度和经度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在我当前的 android 应用程序中,我想根据输入的城市名称、街道名称或邮政编码获取地理坐标.我怎样才能做到这一点?

                  In my current android application, I would like to get the geocordinates based on an entered city name, street name or zip code. How can I accomplish this?

                  最好的问候,罗尼

                  推荐答案

                  查看方法Geocoder.getFromLocationName(cityName, maxResults).

                  像这样使用它:

                  List<Address> addressList = geoCoder.getFromLocationName(cityName, 1);
                  Address address = addressList.get(0);
                  if(address.hasLatitude() && address.hasLongitude()){
                      double selectedLat = address.getLatitude();
                      double selectedLng = address.getLongitude();
                  }
                  

                  这篇关于根据城市、邮编或街道名称获取纬度和经度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:OpenCV Android - 使用 CameraBridgeViewBase 的颜色问题 下一篇:错误“AdbCommandRejectedException:找不到设备"在 Eclipse 中使用 Andr

                  相关文章

                    <small id='nERoc'></small><noframes id='nERoc'>

                    <legend id='nERoc'><style id='nERoc'><dir id='nERoc'><q id='nERoc'></q></dir></style></legend><tfoot id='nERoc'></tfoot>

                      <bdo id='nERoc'></bdo><ul id='nERoc'></ul>
                  1. <i id='nERoc'><tr id='nERoc'><dt id='nERoc'><q id='nERoc'><span id='nERoc'><b id='nERoc'><form id='nERoc'><ins id='nERoc'></ins><ul id='nERoc'></ul><sub id='nERoc'></sub></form><legend id='nERoc'></legend><bdo id='nERoc'><pre id='nERoc'><center id='nERoc'></center></pre></bdo></b><th id='nERoc'></th></span></q></dt></tr></i><div id='nERoc'><tfoot id='nERoc'></tfoot><dl id='nERoc'><fieldset id='nERoc'></fieldset></dl></div>