postal library
Pakistani postal code lookups.
Same as the pakdatakit/postal entry point of the npm package.
Functions
-
getCityByPostalCode(
String postalCode) → String? -
Returns the city for a Pakistani postal code (whitespace is ignored), or
nullif not found. -
getPostalAreas(
String city) → List< String> - Returns the known area names of a city's postal entries, sorted.
-
getPostalCode(
String city) → String? -
Returns the primary (GPO) postal code for a Pakistani city, or
null. -
getPostalCodes(
String city) → List< String> - Returns all known postal codes for a city (case-insensitive), sorted.
-
searchPostalCodes(
String query) → List< String> - Searches postal entries by city name, area, or postal code prefix, and returns the matching postal codes, sorted.