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_STREET_SUFFIXESconstant

What a street's name may end with, which makes the word the name ends in a thoroughfare (Hauptstraße, Berliner Str., Kastanienallee), in lower case with their spellings: strasse for straße, str for the abbreviation. The parser reads the street's whole name as written into street; these tell where it ends.

Import it

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

Definition

const DE_STREET_SUFFIXES: readonly string[] = [
    "straße",
    "strasse",
    "str",
    "weg",
    "platz",
    "allee",
    "gasse",
    "ring",
    "damm",
    "ufer",
    "chaussee",
    "steig",
    "stieg",
    "pfad",
    "markt",
    "hof",
    "park",
    "brücke",
    "bruecke",
    "zeile",
    "promenade",
    "wall",
    "graben",
    "kamp",
    "anger",
    "tor",
    "berg",
    "tal",
]

Examples

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

console.log(DE_STREET_SUFFIXES.slice(0, 4));
// → ["straße","strasse","str","weg"]
[ 'straße', 'strasse', 'str', 'weg' ]

What it prints (run when this page was built)

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