@cityssm/street-name-normalize
v2.0.0
Published
Takes street names with various abbreviations and attempts to expand them.
Maintainers
Readme
Street Name Normalize
Takes street names with various abbreviations and attempts to expand them.
Installation
npm install @cityssm/street-name-normalizeUsage
import normalizeStreetName, {
getAlternateStreetNameSpellings,
normalizeSsmStreetName
} from '@cityssm/street-name-normalize'
normalizeStreetName('1st Ave')
// => FIRST AVENUE
normalizeSsmStreetName('ST GEORGES AVE E')
// => ST. GEORGE'S AVENUE EAST
getAlternateStreetNameSpellings('Foster Dr')
// => [ 'FOSTER DRIVE', 'FOSTER DR', 'FOSTER DRIV', 'FOSTER DRV' ]Features
- Typescript support.
- Expands common street name type abbreviations.
Related Projects
@cityssm/civic-address-format Formats a civic address from its pieces using Canada Post guidelines.
