JapaneseMunicipality型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A municipality (市区町村) in the tables: its JIS code, its prefecture's code, its official name with the district for a town or village in one, its reading and its romaji.
インポート
import type { JapaneseMunicipality } from "@johnmorrisdotca/address-plus/jp";
ほかのエクスポート元: @johnmorrisdotca/address-plus
定義
interface JapaneseMunicipality {
code: string;
prefecture: string;
name: string;
kana: string;
romaji: string;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
code | string | |
prefecture | string | |
name | string | |
kana | string | |
romaji | string |
例
import { findMunicipalityByCode } from "@johnmorrisdotca/address-plus/jp";
import type { JapaneseMunicipality } from "@johnmorrisdotca/address-plus/jp";
console.log(findMunicipalityByCode("13101"));
// → {"code":"13101","prefecture":"13","name":"千代田区","kana":"チヨダク","romaji":"Chiyoda-ku"}{
code: '13101',
prefecture: '13',
name: '千代田区',
kana: 'チヨダク',
romaji: 'Chiyoda-ku'
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。