• <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 在特定位置查找大陆

        how to find continent in particular location using Geocoder in android app(如何在 Android 应用程序中使用 Geocoder 在特定位置查找大陆)
        <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 在特定位置查找大陆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  script.sh: line 1: ./gradlew: No such file or directory on Jenkins(script.sh:第 1 行:./gradlew:Jenkins 上没有这样的文件或目录)
                  Arduino: using Serial and Software Serial with bluetooth module(Arduino:使用带有蓝牙模块的串口和软件串口)
                  Access native serial port on Android(在Android上访问本机串口)
                  Android: USB Communication Android lt;-gt; External Device(Android:USB通信Androidlt;-gt;外接设备)
                  Sending commands from a PC to an Android phone - via physical connection (USB, Serial, etc)(从 PC 向 Android 手机发送命令 - 通过物理连接(USB、串行等))
                  Android: RS232 Serial Communication with android device(Android:与安卓设备的RS232串行通信)
                    <tbody id='JGESS'></tbody>

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

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