formatAddress(parts: AddressParts,options?: FormatAddressOptions): string
Assembles a single address string from its parts — the inverse of
splitAddress.
Components that are absent or blank are skipped. With prefix on (the
default) each component is introduced by its administrative word, switching
to แขวง / เขต automatically when the province is Bangkok.
parts: AddressParts
optional
options: FormatAddressOptions