# ip2region **Repository Path**: naclnezn/ip2region ## Basic Information - **Project Name**: ip2region - **Description**: ip转地区 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-01-07 - **Last Updated**: 2025-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ip2region ## 介绍 官网:https://github.com/lionsoul2014/ip2region/releases/tag/v2.11.2 ip2region 是一个离线IP地址定位库和IP定位数据管理框架,10微秒级别的查询效率,提供了众多主流编程语言的 xdb 数据生成和查询客户端实现。 每个 ip 数据段的 region 信息都固定了格式:国家|区域|省份|城市|ISP,只有中国的数据绝大部分精确到了城市,其他国家部分数据只能定位到国家,后前的选项全部是0。 ## 使用方式 1. 完全基于文件的查询(并发使用时,每个线程需要创建一个独立的 searcher 对象单独使用) 2. 缓存VectorIndex索引(并发使用时,每个线程需要单独创建一个独立的 Searcher 对象,但是都共享全局的制度 vIndex 缓存) 3. 缓存整个xdb数据(并发使用时,用整个 xdb 数据缓存创建的查询对象可以安全的用于并发,也就是全局对象去跨线程访问。)