@zerodep/address-street
v2.0.4
Published
A parser to find where a street name or abbreviation is in a string
Downloads
15
Readme
@zerodep/address-street
A parser to find where a street name or abbreviation is in a string.
Full documentation is available at the zerodep.app page.
Examples
All @zerodep packages support both ESM and CJS.
import { addressStreet } from '@zerodep/address-street';
// or
const { addressStreet } = require('@zerodep/address-street');
Well Formatted Case
addressStreet('1234 Main St, Los Angeles CA, US 90210');
// [
// {
// streetType: 'ST',
// source: 'St',
// ndx: 10,
// length: 2,
// sourceIsAbbr: true,
// },
// ]
With Multiple Street Names/Abbreviations
addressStreet('36 trail street, edmonton ab');
// [
// {
// streetType: 'TR',
// source: 'trail',
// ndx: 3,
// length: 5,
// sourceIsAbbr: false,
// },
// {
// streetType: 'ST',
// source: 'street',
// ndx: 9,
// length: 6,
// sourceIsAbbr: false,
// },
// ]