AU_CROSS_BORDER_POSTCODES定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The postcodes whose area lies in more than one state or territory, each with the states it lies in, the one with most of it first. Read from the Australian Bureau of Statistics' Postal Areas (ASGS Edition 3, CC BY 4.0), which approximate Australia Post's postcodes by mesh blocks, so a state with a sliver of a postcode's area is listed too. An address naming any of these states passes the postcode check.
インポート
import { AU_CROSS_BORDER_POSTCODES } from "@johnmorrisdotca/address-plus/au";
定義
const AU_CROSS_BORDER_POSTCODES: Readonly<Record<string, readonly AustralianStateCode[]>> = {
"2406": [
"NSW",
"QLD"
],
"2611": [
"ACT",
"NSW"
],
"2618": [
"ACT",
"NSW"
],
"2620": [
"NSW",
"ACT"
],
"3644": [
"VIC",
"NSW"
],
"3691": [
"VIC",
"NSW"
],
"3707": [
"VIC",
"NSW"
],
"4375": [
"QLD",
"NSW"
],
"4377": [
"QLD",
"NSW"
],
"4380": [
"QLD",
"NSW"
],
"4383": [
"QLD",
"NSW"
],
"4385": [
"QLD",
"NSW"
],
"4825": [
"QLD",
"NT"
],
"0872": [
"NT",
"SA",
"WA"
]
}
例
import { AU_CROSS_BORDER_POSTCODES } from "@johnmorrisdotca/address-plus/au";
console.log(AU_CROSS_BORDER_POSTCODES["2620"]);
// → ["NSW","ACT"][ 'NSW', 'ACT' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。