add function to calculate distance of point to line, lineString, and polygon