kolesnikovde / Sypex_geo
Sypex Geo IP database adapter for Ruby.
Stars: ✭ 10
Programming Languages
ruby
36898 projects - #4 most used programming language
Labels
Projects that are alternatives of or similar to Sypex geo
MaxMind-DB-Reader-ruby
Ruby reader for the MaxMind DB Database Format
Stars: ✭ 35 (+250%)
Mutual labels: geoip
Beeping
HTTP Monitoring via API - Measure the performance of your servers
Stars: ✭ 267 (+2570%)
Mutual labels: geoip
Nali
An offline tool for querying IP geographic information and CDN provider.一个查询IP地理信息和CDN服务提供商的离线终端工具.
Stars: ✭ 535 (+5250%)
Mutual labels: geoip
lua-resty-maxminddb
A Lua library for reading MaxMind's Geolocation database
Stars: ✭ 72 (+620%)
Mutual labels: geoip
V2ray Rules Dat
🦄 🎃 👻 V2Ray 路由规则文件加强版,可代替 V2Ray 官方 geoip.dat 和 geosite.dat,兼容 Shadowsocks-windows、Xray-core、Trojan-Go 和 leaf。Enhanced edition of V2Ray rules dat files, compatible with Xray-core, Shadowsocks-windows, Trojan-Go and leaf.
Stars: ✭ 6,550 (+65400%)
Mutual labels: geoip
nginx-log-analyzer
A lightweight (simplistic) log analyzer for Nginx.
Stars: ✭ 17 (+70%)
Mutual labels: geoip
Fccurrentlocationgeocoder
iOS Geocoder for forward geocode and reverse geocode user's current location using a block-based syntax. 📍🌍
Stars: ✭ 268 (+2580%)
Mutual labels: geoip
geoip
🌚 🌍 🌝 GeoIP 规则文件加强版,同时支持定制 V2Ray dat 格式路由规则文件 geoip.dat 和 MaxMind mmdb 格式文件 Country.mmdb。Enhanced edition of GeoIP files for V2Ray, Xray-core, Trojan-Go, Clash and Leaf, with replaced CN IPv4 CIDR available from ipip.net, appended CIDR lists and more.
Stars: ✭ 524 (+5140%)
Mutual labels: geoip
Mmdb china ip list
Geoip MaxMind Database for china ip list! This is also an example of generating MaxMind Database!
Stars: ✭ 424 (+4140%)
Mutual labels: geoip
Telize
High performance JSON IP and GeoIP REST API (IP Geolocation)
Stars: ✭ 774 (+7640%)
Mutual labels: geoip
Nginx Autoinstall
Compile Nginx from source with custom modules on Debian and Ubuntu
Stars: ✭ 443 (+4330%)
Mutual labels: geoip
Crips
IP Tools To quickly get information about IP Address's, Web Pages and DNS records.
Stars: ✭ 272 (+2620%)
Mutual labels: geoip
SypexGeo
Sypex Geo IP database adapter for Ruby.
Installation
Add this line to your application's Gemfile:
gem 'sypex_geo'
And then execute:
$ bundle
Usage
require 'sypex_geo'
db = SypexGeo::Database.new('./SxGeoCity.dat')
location = db.query('<IPv4 address>')
location.city
# => {
# id: 524901,
# lat: 55.75222,
# lon: 37.61556,
# name_ru: 'Москва',
# name_en: 'Moscow'
# }
location.region
# => {
# id: 524894,
# iso: 'RU-MOW',
# name_ru: 'Москва',
# name_en: 'Moskva'
# }
location.country
# => {
# id: 185,
# iso: 'RU',
# lat: 60.0,
# lon: 100.0,
# name_ru: 'Россия',
# name_en: 'Russia'
# }
location.country_code
# => 'RU'
Testing
$ wget http://sypexgeo.net/files/SxGeoCountry.zip && unzip SxGeoCountry.zip
$ wget http://sypexgeo.net/files/SxGeoCity_utf8.zip && unzip SxGeoCity_utf8.zip
$ SXGEO_DB=./SxGeo.dat SXGEO_CITY_DB=./SxGeoCity.dat rspec
License
MIT
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].