ZipcodeZhCn 通过地址字符串在线获取中国大陆邮编。 数据来源 http://opendata.baidu.com/post/s 安装 $ gem install zipcode_zh_cn 使用 ZipcodeZhCn.get_zip_code("your address") 或者命令行: $ ZipcodeZhCN 昆山市 215300 Thanks Baidu. http://opendata.baidu.com/post/s License The gem is available as open source under the terms of the MIT License.