Persian Tools - v4.0.4
    Preparing search index...

    Function findProvinceFromCoordinate

    • Find the province from a given coordinate point.

      Parameters

      • pointToCheck: Point

        The coordinate point to check.

      Returns Province

      The province information.

      If the province cannot be found based on the provided coordinates.

      const point: Point = { latitude: 35.6892, longitude: 51.3890 };
      const province = findProvinceFromCoordinate(point);
      console.log(province.fa); // "تهران"
      console.log(province.en); // "Tehran"
      const {fa , en} = findProvinceFromCoordinate(point);