• <legend id='7Q8el'><style id='7Q8el'><dir id='7Q8el'><q id='7Q8el'></q></dir></style></legend>

      <bdo id='7Q8el'></bdo><ul id='7Q8el'></ul>

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

        <small id='7Q8el'></small><noframes id='7Q8el'>

        <tfoot id='7Q8el'></tfoot>

      1. 如何在 Android 应用程序中使用 Geocoder 在特定位置查找大陆

        时间:2023-09-09
        <legend id='mfVmV'><style id='mfVmV'><dir id='mfVmV'><q id='mfVmV'></q></dir></style></legend>

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

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

                  <bdo id='mfVmV'></bdo><ul id='mfVmV'></ul>
                  本文介绍了如何在 Android 应用程序中使用 Geocoder 在特定位置查找大陆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                     i am developing android application using Geocoder services,
                     I have an application where I try to get address of a location based on 
                     the  latitude,longitude coordinates its working fine.  
                     my problem is how to get continent of particular address.
                  

                  example : double lat=17; double lon=78.49;

                  List addresses = new Geocoder(Shout.this,Locale.getDefault()).getFromLocation(lat, lon, 1);

                  i am using this code output is India,Hyderabad this address related how to find continent ,please help me some valuable solution.

                  i am getting country name dynamically using geocoder is their any chance to get in continent name along with country.it is difficult to maintain statically i need dynamically any free services find continent based services

                  Thanks In Advance

                  解决方案

                  I don't think there is such information given by Google's API. The only solution I can think of is to have some kind of static data structure mapping country names to continent names (which you would presumably have to find yourself somehow, for instance by scraping this web page... ). Then you could text search the string that GeoCoder gives you and return the continent corresponding to the closest matching country name (which would be the key in your String mapping). (You would also have to treat the special case of US addresses which, annoyingly, end just with the state code)

                  这篇关于如何在 Android 应用程序中使用 Geocoder 在特定位置查找大陆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:通过 AppWidgetManager 更新我自己的小部件时,电源控制小部件显示一小会儿,这是什么问题? 下一篇:AppWidgetProvider 问题

                  相关文章

                • <small id='JGESS'></small><noframes id='JGESS'>

                  1. <legend id='JGESS'><style id='JGESS'><dir id='JGESS'><q id='JGESS'></q></dir></style></legend>

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

                    <tfoot id='JGESS'></tfoot>

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