# getTehsilDistrict

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

```ts
function getTehsilDistrict(tehsil, province?): string | null;
```

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

Returns the district a tehsil was in at the 2023 census.

Census-district caveat: the result is the census district, which may have
been split since (a tehsil of `Quetta` is now in Quetta East or Quetta
West). A few names are shared by tehsils in different districts (`Saddar`,
`Sahiwal`, `Khanpur`); pass the province to tell them apart. Returns
`null` when the name is unknown or still matches more than one district.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `tehsil` | `string` | Tehsil, taluka or sub-division name (case-insensitive) |
| `province?` | `string` | Optional province to narrow the search |

## Returns

`string` \| `null`

District name or `null`
