Is there any possibility to determine whether a user is inside or outside of a polygon area that I have marked on the map?

I would like to trigger an event if the user goes outside the area (only within the app, so no need for region monitoring)

[![Map showing part of the polygon area](https://i.stack.imgur.com/riTEn.jpg)](https://i.stack.imgur.com/riTEn.jpg)