# getDivisionOfDistrict

Source: https://pakdatakit.dev/api/typescript/geo/functions/getdivisionofdistrict/

```ts
function getDivisionOfDistrict(district): string | null;
```

Defined in: [geo.ts:212](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/geo.ts#L212)

Returns the division a district belonged to in the 2023 census.

Census-district caveat: only the 136 districts of the 2023 census have a
division here, under the name they had then (so `Quetta`, `Dera Bugti` and
`South Waziristan` work, and their successors do not). Districts created
after the census, and those of Azad Jammu and Kashmir, Gilgit-Baltistan and
Islamabad, return `null`.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `district` | `string` | District name (case-insensitive) |

## Returns

`string` \| `null`

Division name or `null` if not known
