Inverse Distance Weighting (IDW) Interpolation - PHP