IP2Region 1.1.1

准确率99.9%的ip地址定位库

There is a newer version of this package available.
See the version list below for details.
Install-Package IP2Region -Version 1.1.1
dotnet add package IP2Region --version 1.1.1
<PackageReference Include="IP2Region" Version="1.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add IP2Region --version 1.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

DbSearcher dbSearcher = new DbSearcher(new DbConfig
{ }, AppContext.BaseDirectory + @"/IP2RegionDB/ip2region.db");
var result = dbSearcher.BtreeSearch(ipAddress);
Console.WriteLine("[btree]你的IP所属区域为:" + result.GetRegion());

DbSearcher dbSearcher = new DbSearcher(new DbConfig
{ }, AppContext.BaseDirectory + @"/IP2RegionDB/ip2region.db");
var result = dbSearcher.BtreeSearch(ipAddress);
Console.WriteLine("[btree]你的IP所属区域为:" + result.GetRegion());

Release Notes

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

Dependencies

This package has 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