function getDistricts
getDistricts(province: string): Promise<AddressEntry[]>

Districts of one province.

Parameters

province: string

The province's Thai name, English name, or 2-digit code.

Return Type

Promise<AddressEntry[]>

Usage

import { getDistricts } from ".";