nepali-address - v1.0.5
    Preparing search index...

    Function getDistrictsByProvince

    • Retrieves all districts belonging to a specific province.

      Parameters

      • provinceId: number

        The unique ID of the province (1-7).

      Returns District[]

      Array of districts in that province, or empty array if not found.

      import { getDistrictsByProvince } from 'nepali-address';

      const districts = getDistrictsByProvince(3);
      // → [{ id: 306, name: 'Kathmandu', ... }, ...]