Project

mobinfo

0.01
No commit activity in last 3 years
No release in over 3 years
lookup ISP and geo info (province, city) for mobile number in China
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.10
~> 10.0
>= 0
 Project Readme

MobInfo

lookup ISP and geo info (province, city etc) for mobile number in China

Installation

Add this line to your application's Gemfile:

gem 'mobinfo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mobinfo

Usage

MobInfo.lookup('1862169')
# => {:province=>"上海", :city=>"上海", :postal_code=>"200000", :region_code=>"021", :isp=>"联通", :prefix=>1862169}

MobInfo.lookup(110)
# => nil

Credits

phone.dat, idea and algorithm from https://github.com/lovedboy/phone

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/forresty/mobinfo.