zip v0.1.0

An easy and extensible way to lookup zip codes

Zip

An easy and extensible way to lookup City, State and Time Zone for a given zip code.

Installation

  1. Add the dependency to your shard.yml:

    dependencies:
      zip:
        github: grkek/zip
    
  2. Run shards install

Usage

require "zip"

zip = Zip::Countries::UnitedStates.new

address = zip.find!("00601") # You can also use find/1 which returns a nil in case of an error

puts "State Name: #{address.state_name}"
puts "State Code: #{address.state_code}"
puts "City: #{address.city}"
puts "Time Zone: #{address.time_zone}"

Contributing

  1. Fork it (https://github.com/grkek/zip/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

zip

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 1
  • over 1 year ago
  • April 8, 2023
License

MIT License

Links
Synced at

Sun, 22 Dec 2024 10:18:50 GMT

Languages