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 · German country module

DE_BUILDING_WORDSconstant

The words for a part of a building, which open the line the parser keeps whole as building (Hinterhaus, Haus B, Gebäude 4, Block C), in lower case.

Import it

import { DE_BUILDING_WORDS } from "@johnmorrisdotca/address-plus/de";

Definition

const DE_BUILDING_WORDS: readonly string[] = [
    "hinterhaus",
    "vorderhaus",
    "seitenflügel",
    "seitenfluegel",
    "gartenhaus",
    "quergebäude",
    "haus",
    "gebäude",
    "gebaeude",
    "block",
    "aufgang",
    "eingang",
    "turm",
    "trakt",
    "flügel",
    "halle",
]

Examples

import { DE_BUILDING_WORDS } from "@johnmorrisdotca/address-plus/de";

console.log(DE_BUILDING_WORDS.slice(0, 3));
// → ["hinterhaus","vorderhaus","seitenflügel"]
[ 'hinterhaus', 'vorderhaus', 'seitenflügel' ]

What it prints (run when this page was built)

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