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. 根据城市、邮编或街道名称获取纬度和经度

        Get latitude and longitude based on city, zip or streetname(根据城市、邮编或街道名称获取纬度和经度)
          <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();
                  }
                  

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

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Lucene Porter Stemmer not public(Lucene Porter Stemmer 未公开)
                  How to index pdf, ppt, xl files in lucene (java based or python or php any of these is fine)?(如何在 lucene 中索引 pdf、ppt、xl 文件(基于 java 或 python 或 php 中的任何一个都可以)?)
                  KeywordAnalyzer and LowerCaseFilter/LowerCaseTokenizer(KeywordAnalyzer 和 LowerCaseFilter/LowerCaseTokenizer)
                  How to search between dates (Hibernate Search)?(如何在日期之间搜索(休眠搜索)?)
                  How to get positions from a document term vector in Lucene?(如何从 Lucene 中的文档术语向量中获取位置?)
                  Java Lucene 4.5 how to search by case insensitive(Java Lucene 4.5如何按不区分大小写进行搜索)
                    <tbody id='nERoc'></tbody>

                      <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>
                        • <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>