interface FormatAddressOptions

Options for formatAddress.

Properties

optional
language: Language

Language of the component-introducing words ("ตำบล" vs "Tambon"). Defaults to Thai. Only affects output when prefix is true.

optional
prefix: boolean

Prefix each component with its administrative word (ตำบล / อำเภอ / …, or แขวง / เขต for Bangkok). Defaults to true.

optional
separator: string

String placed between components. Defaults to a single space.

Usage

import { type FormatAddressOptions } from ".";