Liking cljdoc? Tell your friends :D


Build Status Coverage Status License Dependencies Status Clojars Project

ip2region 的 Clojure 封装。

  • 内置数据库文件
  • 仅保留线程安全的内存查询算法


project.clj 中引入最新版本的依赖:

[clj-ip2region "x.y.z"]


(require '[clj-ip2region.ip2region :as ip2region])
; => nil
(ip2region/ip->region "")
; => {:country "中国", :province "北京", :city "北京市", :isp "腾讯"}
(ip2region/ip->region "")
; => {:country "美国", :province "0", :city "0", :isp "Level3"}


This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which is available at

This Source Code may also be made available under the following Secondary Licenses when the conditions for such availability set forth in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version, with the GNU Classpath Exception which is available at

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close