Reference · Japanese addresses
findMunicipalityByCodefunction
The municipality with a JIS X 0402 code, a designated city's own code included.
Import it
import { findMunicipalityByCode } from "@johnmorrisdotca/address-plus/jp";
Also exported from: @johnmorrisdotca/address-plus
Definition
function findMunicipalityByCode(code: string): JapaneseMunicipality | null
Parameters
| Name | Type | Description |
|---|---|---|
code | string | The five-digit code. |
Returns
JapaneseMunicipality | null
The municipality, or null for a code the tables do not have.
Examples
import { findMunicipalityByCode } from "@johnmorrisdotca/address-plus/jp";
console.log(findMunicipalityByCode("13101")?.name);
// → "千代田区"千代田区What it prints (run when this page was built)