DC Address Parser
Parses and normalizes Washington, DC street addresses according to the DC Master Address Repository (MAR) standard.
Usage
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"
Address standard
The Gem conforms to the DC Master Address Repository (MAR) address standard. You can learn more about the MAR in the MAR FAQ.
Looking up addresses in the MAR
The Gem integrates with the DC Address Lookup gem. To look up an address in the MAR:
address.lookup
=> #<DcAddressLookup::Location>
Installing
- Add
gem 'dc_address_parser'
to your project's Gemfile bundle install