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 !!!
- Host: GitHub
- URL: https://github.com/lcy362/ip-region
- Owner: lcy362
- Created: 2021-09-26T06:56:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:06:18.000Z (over 2 years ago)
- Last Synced: 2023-12-15T09:53:37.617Z (over 2 years ago)
- Topics: algorithms, ip, java
- Language: Java
- Homepage: https://container-n7bpik0.containers.anotherwebservice.com/
- Size: 26.1 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/