Sorry if this has been asked before, I'm newish to programming so I'm not sure how exactly to define this issue. So I've been trying to code an AppScript extension to find what geographical area a given point lies in. My function names isInsideWrapper successfully identifies whether or not the given point is inside the area. However, when I try to then write a function to search for which area it's in, isInsideWrapper returns false instead of true for the area the point is in. Here's how the Google sheet looks, with the output for areaSeach and isInsideWrapper shown, as well as some of my code:
function areaFinder (polyRange,pt) {
let arr = []
for (let i = 0; i<polyRange.length; i++){
arr.push(isInsideWrapper(polyRange[i],pt))
}
return arr
}
I've tried mapping the equation, printing the output of isInsideWrapper on just polyRange1, the area where it should be true (that still comes out as false when done through areaFinder). When I print just polyRange1, it's the same exact thing as the input. So I'm really lost as to why it's returning false. If needed, I can post details of the other callback functions.