Skip to content

getProvince

function getProvince(city): string | null;

Defined in: geo.ts:43

Returns the province for a given Pakistani city name.

Matching is case-insensitive and ignores inconsistent spacing. Returns null when no exact city match is found.

Parameter Type Description
city string The city name to look up

string | null

Province name or null if not found