IP2Region 1.0.0

准确率99.9%的ip地址定位库,0.0x毫秒级查询, 支持Binary,B树,内存三种查询算法,妈妈再也不用担心我的ip地址定位!

There is a newer version of this package available.
See the version list below for details.
Install-Package IP2Region -Version 1.0.0
dotnet add package IP2Region --version 1.0.0
<PackageReference Include="IP2Region" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IP2Region --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
//The file of ip2region.db in https://github.com/lionsoul2014/ip2region   you can find in data file.
 DbSearcher dbSearcher = new DbSearcher(new DbConfig
            { }, AppContext.BaseDirectory + @"/DBFile/ip2region.db");
 var result = dbSearcher.BtreeSearch(ipAddress);
 Console.WriteLine("[btree]你的IP所属区域为:" + result.GetRegion());

//The file of ip2region.db in https://github.com/lionsoul2014/ip2region   you can find in data file.
 DbSearcher dbSearcher = new DbSearcher(new DbConfig
            { }, AppContext.BaseDirectory + @"/DBFile/ip2region.db");
 var result = dbSearcher.BtreeSearch(ipAddress);
 Console.WriteLine("[btree]你的IP所属区域为:" + result.GetRegion());

Release Notes

ip2region - 最自由的ip地址查询库,ip到地区的映射库,提供Binary,B树和纯内存三种查询算法,妈妈再也不用担心我的ip地址定位。

  • .NETStandard 2.0

    • No dependencies.

Showing the top 1 GitHub repositories that depend on IP2Region:

Repository Stars
Meowv/Blog
此版本个人博客项目基于 .NET Core 3.1 开发,可作为 .NET Core 入门项目进行学习,数据库采用 Sqlite,遵循RESTful API接口规范,所有页面采用 axios 和 template-web.js 请求和加载数据,原生JavaScript操作页面。

Read more about the GitHub Usage information on our documentation.

Version History

Version Downloads Last updated
1.2.0 2,532 7/28/2018
1.1.2 463 2/10/2018
1.1.1 347 2/9/2018
1.0.0 321 2/9/2018