Skip to the content

address-plusアドレスプラス

Parse, validate, format and compare addresses locally, add country modules and mount an optional native form field.

address-plus extends the parse-address style with typed results, validation, formatting and country modules. About the name

Contents

Reference · British country module

GB_THOROUGHFARE_DESCRIPTORSconstant

The thoroughfare descriptors the parser takes off the end of a street's name and reports, in full, as type (High Street is street High, type Street), with the abbreviations it reads for each. A street ending in none of them (Kingsway, The Strand) has no type.

Import it

import { GB_THOROUGHFARE_DESCRIPTORS } from "@johnmorrisdotca/address-plus/gb";

Definition

const GB_THOROUGHFARE_DESCRIPTORS: Readonly<Record<string, readonly string[]>> = {
    Approach: ["APP", "APPR"],
    Avenue: ["AVE", "AV"],
    Bank: [],
    Boulevard: ["BLVD", "BVD"],
    Broadway: [],
    Brow: [],
    Bypass: [],
    Causeway: [],
    Chase: [],
    Circus: [],
    Close: ["CL"],
    Common: [],
    Copse: [],
    Corner: [],
    Cottages: ["COTTS"],
    Court: ["CT"],
    Crescent: ["CRES", "CRESC"],
    Croft: [],
    Dale: [],
    Dell: [],
    Drive: ["DR"],
    Drove: [],
    Embankment: [],
    End: [],
    Esplanade: ["ESP"],
    Fields: [],
    Fold: [],
    Gardens: ["GDNS"],
    Gate: [],
    Glade: [],
    Glen: [],
    Green: ["GN", "GRN"],
    Grove: ["GR", "GRO", "GRV"],
    Heights: ["HTS"],
    Highway: ["HWY"],
    Hill: [],
    Hollow: [],
    Lane: ["LN"],
    Link: [],
    Loke: [],
    Mall: [],
    Mead: [],
    Meadow: [],
    Meadows: [],
    Mews: [],
    Mount: ["MT"],
    Orchard: [],
    Oval: [],
    Paddock: [],
    Parade: ["PDE"],
    Park: ["PK"],
    Passage: [],
    Path: [],
    Place: ["PL"],
    Promenade: ["PROM"],
    Quay: [],
    Rise: [],
    Road: ["RD"],
    Row: [],
    Square: ["SQ"],
    Street: ["ST", "STR"],
    Terrace: ["TERR", "TCE"],
    Vale: [],
    View: [],
    Walk: ["WLK"],
    Way: ["WY"],
    Wharf: [],
    Wynd: [],
    Yard: [],
}

Examples

import { GB_THOROUGHFARE_DESCRIPTORS } from "@johnmorrisdotca/address-plus/gb";

console.log(GB_THOROUGHFARE_DESCRIPTORS.Road);
// → ["RD"]
[ 'RD' ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/address-plus 1.7.0.