Coder Social home page Coder Social logo

代码重构以及支持 IPV6 about ip-database HOT 15 CLOSED

itbdw avatar itbdw commented on August 23, 2024 1
代码重构以及支持 IPV6

from ip-database.

Comments (15)

itbdw avatar itbdw commented on August 23, 2024

mit,直接用了,开发中

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

发现了JS 的类似项目,但是地址匹配就高级多了,地址map竟然如此丰富,城市的匹配准确性也会提高很多,解决了自治区城市没有使用 xxx区 xxx市 的命名习惯。

https://github.com/metowolf/qqwry.ipdb/blob/master/src/format/data/iso3166.js

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

需要兼容以下IP,原始 country 不规范的需要继续添加到 area ,防止信息丢失

{"ip":"218.193.183.35","country":"**","province":"上海","city":"","county":"","area":"**上海 D27-707","isp":"","org":{"ip":"218.193.183.35","country":"上海交通大学闵行校区","area":"D27-707"}}
{"ip":"210.74.2.227","country":"**","province":"北京","city":"","county":"","area":"**北京 实验学院机房","isp":"","org":{"ip":"210.74.2.227","country":"北京工业大学","area":"实验学院机房"}}
{"ip":"162.105.217.0","country":"**","province":"北京","city":"","county":"","area":"**北京 4区-4f","isp":"","org":{"ip":"162.105.217.0","country":"北京大学万柳学区","area":"4区-4f"}}

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

计划找国家地区规范,返回数据支持地区码

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

行政区域数据可以来自 http://www.mca.gov.cn/article/sj/xzqh/2020/

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

国家统计局的2020代码规范,可以了解下
http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2020/index.html

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

中华人民共和国行政区划代码 哈哈哈
https://github.com/tonyc726/china-administrative-division

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

阿里数据库跟我的命名这么像呢。。。

https://help.aliyun.com/document_detail/170546.html?spm=a2c4g.11186623.6.562.5ac01aa0FoOLSP

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

ipdb格式本身就是结构化的?更规范?参考
https://github.com/kqtec/iplocationzh/blob/master/src/Ip.php

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

可以针对大学以及区域码,做映射。配置文件可以通过网络资源生成,生成代码也放到项目内

from ip-database.

hulang avatar hulang commented on August 23, 2024

期待啊,支持ip v6。。重构就重构,我等着更新composer

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

期待啊,支持ip v6。。重构就重构,我等着更新composer

去年年底已经写完,一直没更新仓库。。。@hulang
现在可以了 https://github.com/itbdw/ip-database/tree/3.x

from ip-database.

Alion548 avatar Alion548 commented on August 23, 2024

请问,ipv6wry.db文件在哪里更新?

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

请问,ipv6wry.db文件在哪里更新?

http://ip.zxinc.org/

from ip-database.

itbdw avatar itbdw commented on August 23, 2024

暂时不添加区域码了

from ip-database.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.