i start a proyect in the university but i have a big question (sry my language native no is english), i want check via GPS if the prototype is inside of the irregular area, image of example

i dont have problem with sensor, the big big dude is, how check is inside of the irregular perimeter, some idea for start ?
any idea is welcome
thanks for you time