GB_THOROUGHFARE_DESCRIPTORS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { GB_THOROUGHFARE_DESCRIPTORS } from "@johnmorrisdotca/address-plus/gb";
定義
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: [],
}
例
import { GB_THOROUGHFARE_DESCRIPTORS } from "@johnmorrisdotca/address-plus/gb";
console.log(GB_THOROUGHFARE_DESCRIPTORS.Road);
// → ["RD"][ 'RD' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。