# searchPostalCodes

Source: https://pakdatakit.dev/api/typescript/postal/functions/searchpostalcodes/

```ts
function searchPostalCodes(query): string[];
```

Defined in: [postal.ts:96](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/postal.ts#L96)

Searches postal entries by city name, area, or postal code prefix.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `query` | `string` | Partial search term |

## Returns

`string`[]

Matching postal code strings, sorted alphabetically
