Skip to content

Latest commit

 

History

27 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Street Name Normalize

npm (scoped) DeepSource codecov GitHub Workflow Status

Takes street names with various abbreviations and attempts to expand them.

Installation

npm install @cityssm/street-name-normalize

Usage

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.

About

Takes street names with various abbreviations and attempts to expand them.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages