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

FR_BUILDING_WORDSconstant

The words that open the line naming a building, a residence or a zone (La Poste's third line), which the parser keeps whole as building (Résidence Les Lilas, Bâtiment A, Zone industrielle Nord, ZAC des Prés), with their abbreviations.

Import it

import { FR_BUILDING_WORDS } from "@johnmorrisdotca/address-plus/fr";

Definition

const FR_BUILDING_WORDS: Readonly<Record<string, readonly string[]>> = {
    Bâtiment: ["BAT", "BATIMENT", "BÂT"],
    Immeuble: ["IMM"],
    Résidence: ["RES", "RESIDENCE", "RÉS"],
    Tour: [],
    Hall: [],
    Pavillon: ["PAV"],
    Palais: [],
    Maison: [],
    Zone: [],
    ZI: [],
    ZA: [],
    ZAC: [],
    ZAD: [],
    Centre: ["CTRE", "CCAL"],
}

Examples

import { FR_BUILDING_WORDS } from "@johnmorrisdotca/address-plus/fr";

console.log(FR_BUILDING_WORDS.Bâtiment);
// → ["BAT","BATIMENT","BÂT"]
[ 'BAT', 'BATIMENT', 'BÂT' ]

What it prints (run when this page was built)

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