Project

zipcode-ch

0.0
No commit activity in last 3 years
No release in over 3 years
Query city information by zip code.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0

Runtime

 Project Readme

zipcode-ch

Find swiss city data by zip code.

Installation

Add this line to your application's Gemfile:

gem 'zipcode-ch'

And then execute:

$ bundle

Or install it yourself as:

$ gem install zipcode-ch

Usage

require 'zipcode-ch'

# use it directly
z = ZipCode::CH.new
z.load                         # builds memory-backed global index

z.search(:zip, '8000')         # exact zip code search

# use it through ZipCode::DB
ZipCode::DB.for(:ch).load
ZipCode::DB.for(:ch).search(:zip, '8000')

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/timoschilling/zipcode-ch.