Skip to content

parseAddress

function parseAddress(address): ParsedAddress;

Defined in: address.ts:73

Parses a free-form Pakistani address into structured components.

Extracts postal codes, matches known cities/districts/provinces from datasets, and assigns remaining segments to street and area fields. Works with or without commas between components.

Parameter Type Description
address string Raw address string

ParsedAddress

Structured address components