FR_COLLECTIVITIES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The overseas collectivities that have postcodes in La Poste's base: each with its code, its ISO 3166-1 country code and its name. They are French, and addressed through La Poste, but each has a country code of its own and the Universal Postal Union lists them apart, so an address in one reads as that country's. From INSEE's Code officiel géographique (Licence Ouverte 2.0).
インポート
import { FR_COLLECTIVITIES } from "@johnmorrisdotca/address-plus/fr";
定義
const FR_COLLECTIVITIES: readonly FrenchCollectivity[] = [
{
"code": "975",
"country": "PM",
"name": "Saint-Pierre-et-Miquelon"
},
{
"code": "977",
"country": "BL",
"name": "Saint-Barthélemy"
},
{
"code": "978",
"country": "MF",
"name": "Saint-Martin"
},
{
"code": "986",
"country": "WF",
"name": "Wallis-et-Futuna"
},
{
"code": "987",
"country": "PF",
"name": "Polynésie française"
},
{
"code": "988",
"country": "NC",
"name": "Nouvelle-Calédonie"
}
]
例
import { FR_COLLECTIVITIES } from "@johnmorrisdotca/address-plus/fr";
console.log(FR_COLLECTIVITIES.map((one) => one.country));
// → ["PM","BL","MF","WF","PF","NC"][ 'PM', 'BL', 'MF', 'WF', 'PF', 'NC' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。