StreetAddressExt

StreetAddresExt is a thin wrapper around the street-address gem

In fact, parse returns a modified StreetAddress::US::Address

with

  • state and postal codes removed
  • street and city capitalized
  • suffix in correct position see this issue

Installation

Add this line to your application's Gemfile:

gem 'street_address_ext'

And then execute:

$ bundle

Or install it yourself as:

$ gem install street_address_ext

Usage

require 'street_address_ext'

address_string = "84 Beacon St., Boston MA"
StreetAddressExt.parse(address_string).to_s #=> "84 Beacon St, Boston"

Dependencies

StreetAddress

Contributing

  1. Fork it
  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 new Pull Request