Project

zipcode-de

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-de

Find german city data by zip code.

Installation

Add this line to your application's Gemfile:

gem 'zipcode-de'

And then execute:

$ bundle

Or install it yourself as:

$ gem install zipcode-de

Usage

require 'zipcode-de'

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

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

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

Roadmap

  • Support prefix search
  • Support search by name
  • Faster indexes

Contributing

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

Credits

Data source: OpenStreetMap