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_STREET_TYPESconstant

The types of voie the parser takes off the front of a street's name and reports, in full, as type (rue de la Paix is street de la Paix, type Rue), with the abbreviations it reads for each. In French the type comes first. A street with none of them (Le Vieux Pont) has no type.

Import it

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

Definition

const FR_STREET_TYPES: Readonly<Record<string, readonly string[]>> = {
    Allée: ["ALL", "ALLEE", "ALLEES"],
    Autoroute: ["AUT"],
    Avenue: ["AV", "AVE", "AVEN"],
    Boulevard: ["BD", "BLD", "BOUL", "BVD", "BLVD"],
    Carrefour: ["CAR", "CARR"],
    Chaussée: ["CHAUSSEE", "CHS"],
    Chemin: ["CHE", "CHEM", "CH"],
    Cité: ["CITE"],
    Clos: [],
    Cour: [],
    Cours: ["CRS"],
    Domaine: ["DOM"],
    Esplanade: ["ESP"],
    Faubourg: ["FG", "FBG", "FAUB"],
    Hameau: ["HAM"],
    Impasse: ["IMP"],
    Jardin: ["JARD"],
    Lotissement: ["LOT", "LOTISS"],
    Mail: [],
    Montée: ["MONTEE", "MTE"],
    Parc: [],
    Parvis: ["PARV"],
    Passage: ["PAS", "PASS"],
    Place: ["PL"],
    Pont: [],
    Port: [],
    Promenade: ["PROM"],
    Quai: ["QU"],
    "Rond-point": ["RPT", "ROND POINT", "RD PT", "RDPT"],
    Route: ["RTE"],
    Rue: ["R"],
    Ruelle: ["RLE"],
    Sentier: ["SENT"],
    Square: ["SQ", "SQUARE"],
    Traverse: ["TRA"],
    Venelle: ["VEN"],
    Villa: ["VLA"],
    Village: ["VGE", "VLGE"],
    Voie: ["VOI"],
}

Examples

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

console.log(FR_STREET_TYPES.Boulevard);
// → ["BD","BLD","BOUL","BVD","BLVD"]
[ 'BD', 'BLD', 'BOUL', 'BVD', 'BLVD' ]

What it prints (run when this page was built)

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