No commit activity in last 3 years
No release in over 3 years
Parses and normalizes Washington, DC street addresses according to the DC Master Address Repository (MAR) standard.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 0.10
~> 10.0
~> 3.0
~> 1.22

Runtime

 Project Readme

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