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