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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
address |
string |
Raw address string |
Returns
Section titled “Returns”Structured address components