Parses and normalizes Washington, DC street addresses according to the DC Master Address Repository (MAR) standard.
address = DcAddressParser.parse "123 main st n.w."
address.number
=> 123
address.street_name
=> "MAIN"
address.street_type
=> "STREET"
address.quadrant
=> "NW"
address.to_s
"123 MAIN STREET NW"
The Gem conforms to the DC Master Address Repository (MAR) address standard. You can learn more about the MAR in the MAR FAQ.
The Gem integrates with the DC Address Lookup gem. To look up an address in the MAR:
address.lookup
=> #<DcAddressLookup::Location>
- Add
gem 'dc_address_parser'
to your project's Gemfile bundle install