def parse_intersection(inter)
regex = Regexp.new(
'\A\W*' + street_regexp + '\W*?
\s+' + corner_regexp + '\s+' +
street_regexp + '\W+' +
place_regexp + '\W*\Z', Regexp::IGNORECASE + Regexp::EXTENDED
)
return unless match = regex.match(inter)
normalize_address(
StreetAddress::US::Address.new(
:street => match[4] || match[9],
:street_type => match[5],
:suffix => match[6],
:prefix => match[3],
:street2 => match[15] || match[20],
:street_type2 => match[16],
:suffix2 => match[17],
:prefix2 => match[14],
:city => match[23],
:state => match[24],
:postal_code => match[25]
)
)
end