Skip to content

Parses and normalizes Washington, DC street addresses according to the DC Master Address Repository (MAR) standard

License

Notifications You must be signed in to change notification settings

benbalter/dc-address-parser

Repository files navigation

DC Address Parser

Parses and normalizes Washington, DC street addresses according to the DC Master Address Repository (MAR) standard.

Build Status

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

  1. Add gem 'dc_address_parser' to your project's Gemfile
  2. bundle install

About

Parses and normalizes Washington, DC street addresses according to the DC Master Address Repository (MAR) standard

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published