Skip to content

bankrate/parse-address

Folders and files

NameName
Last commit message
Last commit date

Latest commit

94687d1 · Sep 19, 2023

History

67 Commits
Sep 19, 2023
Sep 19, 2023
Jul 19, 2021
Sep 19, 2023
Jul 14, 2021
Sep 19, 2023
Oct 15, 2015
Jul 15, 2021
Jul 14, 2021
Sep 19, 2023
Sep 19, 2023
Jul 16, 2021
Jul 20, 2021

Repository files navigation

US Street Address Parser Build Status

This is a Typescript port for the Perl Geo::StreetAddress::US package

Description from Geo::StreetAddress::US:

Geo::StreetAddress::US is a regex-based street address and street intersection parser for the United States. Its basic goal is to be as forgiving as possible when parsing user-provided address strings. Geo::StreetAddress::US knows about directional prefixes and suffixes, fractional building numbers, building units, grid-based addresses (such as those used in parts of Utah), 5 and 9 digit ZIP codes, and all of the official USPS abbreviations for street types and state names... more

Usage:

import addressParser from '@bankrate/parse-address'

const address = '1005 N Gravenstein Highway Sebastopol CA 95472'
const parsed = addressParser.parseLocation(address)

// Parsed address:
{
 number: '1005',
 prefix: 'N',
 street: 'Gravenstein',
 type: 'Hwy',
 city: 'Sebastopol',
 state: 'CA',
 zip: '95472',
}

About

US Street Address Parser

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • TypeScript 97.7%
  • Shell 1.7%
  • JavaScript 0.6%