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

    <legend id='sjqlQ'><style id='sjqlQ'><dir id='sjqlQ'><q id='sjqlQ'></q></dir></style></legend>
  • <tfoot id='sjqlQ'></tfoot>

      • <bdo id='sjqlQ'></bdo><ul id='sjqlQ'></ul>
      1. 如何使用 MaxMind 的 GeoIP 数据库来确定位置?

        How do I use MaxMind#39;s GeoIP database to determine location?(如何使用 MaxMind 的 GeoIP 数据库来确定位置?)
          <tbody id='WV0d8'></tbody>
      2. <legend id='WV0d8'><style id='WV0d8'><dir id='WV0d8'><q id='WV0d8'></q></dir></style></legend>
          <bdo id='WV0d8'></bdo><ul id='WV0d8'></ul>

            <tfoot id='WV0d8'></tfoot>

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

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

                  本文介绍了如何使用 MaxMind 的 GeoIP 数据库来确定位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  所以,我在上一个问题中被告知我可以使用 MaxMind 提供的 数据库来确定位置.

                  So, I was told in my previous question that I can use the databases provided by MaxMind to determine locations.

                  所以,我从他们的网站下载了他们的数据库.它们是 csv 文件并在 Excel 中打开.

                  So, I got their databases downloaded from their site. They are csv files and open up in Excel.

                  InetAddress ip = InetAddress.getLocalHost() 是我获取计算机 IP 的方式.从那里我做 String justIP = ip.getHostAddress()

                  InetAddress ip = InetAddress.getLocalHost() is how I get the IP of my computer. From there I do String justIP = ip.getHostAddress()

                  我的问题是:

                1. 如何使用我刚刚下载的数据库将 justIP 解析为城市位置???

                2. 我对此很陌生,因此将不胜感激.

                  My question is:

                3. How do I resolve justIP to a city location using the DB I just downloaded ???

                4. I am new to this so a little help will be appreciated.

                  其中一个文件包含三列.startIPNumendIPNumlocID 我不知道这些是做什么的,但我猜 locID 映射到一个城市和国家在另一个文件中的位置.

                  One of the files has three columns. startIPNum, endIPNum and locID I do not know what these do but I guess locID maps to a city and country location in the other file.

                  推荐答案

                  你试过 Maxmind 的 Java 例子吗?http://dev.maxmind.com/geoip/downloadable#Java-8
                  有关字段说明,请参见 http://dev.maxmind.com/geoip/csv

                  Did you tried the Java examples from Maxmind? http://dev.maxmind.com/geoip/downloadable#Java-8
                  And see http://dev.maxmind.com/geoip/csv for field descriptions

                  这篇关于如何使用 MaxMind 的 GeoIP 数据库来确定位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)
                  <tfoot id='VHlft'></tfoot>

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

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

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

                          • <legend id='VHlft'><style id='VHlft'><dir id='VHlft'><q id='VHlft'></q></dir></style></legend>
                              <tbody id='VHlft'></tbody>