Skip to content

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

License

Notifications You must be signed in to change notification settings

cityssm/street-name-normalize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Street Name Normalize

npm (scoped) Codacy Badge Maintainability codecov Snyk Vulnerabilities for GitHub Repo GitHub Workflow Status

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

Installation

npm install @cityssm/street-name-normalize

Usage

import { normalizeStreetName } from '@cityssm/street-name-normalize'

// Sault Ste. Marie, Ontario specific settings
import { normalizeSsmStreetName } from '@cityssm/street-name-normalize/ssm.js'

normalizeStreetName('1st Ave')
// => FIRST AVENUE

normalizeSsmStreetName('ST GEORGES AVE E')
// => ST. GEORGE'S AVENUE EAST

Features

  • Typescript support.
  • Expands common street name type abbreviations.