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

        • <bdo id='fMpo7'></bdo><ul id='fMpo7'></ul>
      1. <tfoot id='fMpo7'></tfoot>

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

      2. 来自 IP 地址的经度和纬度值

        Longitude and latitude value from IP address(来自 IP 地址的经度和纬度值)
        • <bdo id='IAsje'></bdo><ul id='IAsje'></ul>

            • <legend id='IAsje'><style id='IAsje'><dir id='IAsje'><q id='IAsje'></q></dir></style></legend>

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

                <tfoot id='IAsje'></tfoot>

                    <tbody id='IAsje'></tbody>
                  本文介绍了来自 IP 地址的经度和纬度值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  是否可以从asp.net中的IP地址获取经度和纬度值?如果可能的话,请告诉我如何获得这个.

                  Is it possible to get the longitude and latitude value from IP address in asp.net? If it is possible, please let me know how can I get this.

                  推荐答案

                  MaxMind Geolite city免费.如果它不够好,您显然可以升级到更准确的付费版本.我无法评价付费版本的质量,因为我从未使用过它.

                  MaxMind Geolite city is free. If it is not good enough, you can apparently upgrade to a more accurate paid-version. I can't speak for the quality of the paid version, as I have never used it.

                  如果您喜欢您的 SQL,请下载 CSV 版本.将其加载到您选择的数据库中,然后查询.

                  If you like your SQL, download the CSV version. Load it into your database of choice, and query away.

                  更快、更节省空间的选择是下载文件二进制blob版本同一个数据库,然后使用C#类查询.

                  The faster and space-efficient option is to download the file binary blob version of the same database, and then use the C# class to query it.

                  另外,我发现 ipinfodb.com 很有用.查询是通过简单的 HTTP GET.例如,要对 stackoverflow.com 进行地理定位,请尝试:

                  Alternatively, I have found ipinfodb.com to be useful. Query is by simple HTTP GET. For example, to geolocate stackoverflow.com try:

                  http://ipinfodb.com/ip_query.php?timezone=false&ip=69.59.196.211
                  

                  这将返回一个包含纬度和经度的 XML 文件,如下所示:

                  This will return an XML file containing latitude and longitude, that looks like:

                  <Response>
                    <Ip>69.59.196.211</Ip>
                    <Status>OK</Status>
                    <CountryCode>US</CountryCode>
                    <CountryName>United States</CountryName>
                    <RegionCode>41</RegionCode>
                    <RegionName>Oregon</RegionName>
                    <City>Corvallis</City>
                    <ZipPostalCode>97333</ZipPostalCode>
                    <Latitude>44.4698</Latitude>
                    <Longitude>-123.343</Longitude>
                  </Response>
                  

                  http://forum.ipinfodb.com/上提供了一些 VB.NET 示例代码viewtopic.php?f=7&t=269

                  这篇关于来自 IP 地址的经度和纬度值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Using entity Framework with .NET Core and DB2(将实体框架与 .NET Core 和 DB2 结合使用)
                  SQL1159 Initialization error with DB2 .NET Data Provider, reason code 10, tokens 0.0.0, 9.7.3(SQL1159 DB2 .NET 数据提供程序的初始化错误,原因代码 10,令牌 0.0.0、9.7.3)
                  C# quot;awaitquot; error when using WinRT from Desktop app(C#“等待从桌面应用程序使用 WinRT 时出错)
                  Geolocation error with IP address 127.0.0.1(IP 地址为 127.0.0.1 的地理定位错误)
                  Check if point is inside a circle(检查点是否在圆圈内)
                  Smart way to get the public Internet IP address/geo loc(获取公共 Internet IP 地址/地理位置的智能方法)

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

                            <tbody id='Qfao2'></tbody>

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

                          • <legend id='Qfao2'><style id='Qfao2'><dir id='Qfao2'><q id='Qfao2'></q></dir></style></legend>