Function findProvinceFromCoordinate

Find the province from a given coordinate point.

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);
  • Parameters

    • pointToCheck: Point

      The coordinate point to check.

    Returns Province

    The province information.