Skip to content

searchPostOffices

function searchPostOffices(query): PostOffice[];

Defined in: post-offices.ts:66

Searches Pakistan Post’s directory by office name, town or post code.

Matching is case-insensitive: an office matches when its name or town contains the query, or its code starts with it.

Parameter Type Description
query string Partial office name, town or post code

PostOffice[]

Matching post offices, sorted by post code