# normalizeCityForCourier

Source: https://pakdatakit.dev/api/typescript/courier/functions/normalizecityforcourier/

```ts
function normalizeCityForCourier(input): string | null;
```

Defined in: [courier.ts:242](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/courier.ts#L242)

Maps the way a customer or a courier writes a city to the city's name in
pakdatakit's city list, so orders can be matched against a courier's
service list.

Accepts the exact name in any case, short forms (`LHR`, `Khi`, `Pindi`,
`Isb`, `FSD`), the old name Lyallpur, a trailing "city", and the main
cities in Urdu script.

## Parameters

| Parameter | Type |
| :------ | :------ |
| `input` | `string` |

## Returns

`string` \| `null`

A city from the city list, or `null`. Never throws.

## Example

```ts
normalizeCityForCourier('LHR'); // "Lahore"
normalizeCityForCourier('lyallpur'); // "Faisalabad"
normalizeCityForCourier('Karachi City'); // "Karachi"
normalizeCityForCourier('Atlantis'); // null
```
