IP2Region 1.1.2

准确率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.1.2
dotnet add package IP2Region --version 1.1.2
<PackageReference Include="IP2Region" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IP2Region --version 1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
IDbSearcher dbSearcher = new DbSearcher(new DbConfig
            {
            }, AppContext.BaseDirectory + @"/DBFile/ip2region.db");
var  result = dbSearcher.BtreeSearch(ipAddress);
Console.WriteLine("[btree]你的IP所属区域为:" + result.GetRegion() + ";耗时:" + sw.Elapsed.TotalMilliseconds + "ms");
IDbSearcher dbSearcher = new DbSearcher(new DbConfig
            {
            }, AppContext.BaseDirectory + @"/DBFile/ip2region.db");
var  result = dbSearcher.BtreeSearch(ipAddress);
Console.WriteLine("[btree]你的IP所属区域为:" + result.GetRegion() + ";耗时:" + sw.Elapsed.TotalMilliseconds + "ms");

Release Notes

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

  • .NETFramework 4.6

    • No dependencies.
  • .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,449 7/28/2018
1.1.2 459 2/10/2018
1.1.1 344 2/9/2018
1.0.0 318 2/9/2018