public class LocationRegions extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getAddress(String ip)
获取ip信息
|
static String |
getAddress(String ip,
int algorithm)
获取ip信息
|
static Region |
getRegion(String ip)
获取ip信息
|
static Region |
getRegion(String ip,
int algorithm)
获取ip信息
|
public static Region getRegion(String ip)
ip
- ippublic static Region getRegion(String ip, int algorithm)
ip
- ipalgorithm
- 算法 1: b+tree 2: 二进制 3: 内存public static String getAddress(String ip)
ip
- ipCopyright © 2024. All rights reserved.