An open API service indexing awesome lists of open source software.

https://github.com/lcy362/ip-region

The fastest ip-region convertor of java version !!!
https://github.com/lcy362/ip-region

algorithms ip java

Last synced: about 1 month ago
JSON representation

The fastest ip-region convertor of java version !!!

Awesome Lists containing this project

README

          

The fastest ip-region convertor of java version !!!

# what you can do
convert ip address to region info

# implemention
the data is from http://download.ip2location.com.
## data sample
```
...
16781312,JP
16785408,CN
16793600,JP
...
```
which means the start position of an ip address segment, with where this segment is located.

And the query process is just a simple binary search.

# try it
http://ip-country.lichuanyang.top/

具体查看实现方式 https://lichuanyang.top/posts/36780/