Finding whether the current location is inside a polygon

Hi, I’d like to know whether it would be possible to check whether the user’s location is inside a polygon.
I have a few polygons and If the user’s location is in either one of those polygons I want to set a variable which from a proper inside the polygon json data. If anyone has experience in this or even if you know its possible to do this inside thunkable functions :slightly_smiling and map component please give me some tips.

Thanks :slightly_smiling_face:

Are you drawing the polygons with the Thunkable map component @mvgeek?

I’d imagine if you have the corner points then you could write your own function to check if the current location is less then the max value and greater than the min value, right?

I can draw the polygons on thukable too, there are around 10 polygons, all of them are located next to each other meaning there are lots of corners.

So I should calculate and compute the area and check and compare users location? is that what you mean?

D’oh! :see_no_evil: When I read this first I just assumed that it was a rectangle. Yeah, I guess it’s still possible, albeit somewhat more complex, for any polygon.