geofencing with arduino

I am designing a security system for fuel tankers.I am interfacing a lid sensor and fuel level sensor to arduino .now I nid 2 create geofences for the stations(safe zones) where the tanker can offload fuel without my system triggering an alert!I noticed in arduino tutorial 15 where they used gps data logging using arduino and a gps module…so I was thinking if I can pick up coordinates for my desired fences in a similar manner,how can I create an actual geofence in my program so that the system can only send alerts if it is outside a specified zone??any help will be highly appreciated! Thank you

Simple trig…if you’re a “final year engineering student”…

Surely a “final year engineering student” would be able to boil down a few sets of GPS coordinates into a simple X/Y “plot”, and using that “plot”, be able to figure out if the device of interest is inside said “plot”.

Or did this “engineering” syllabus skip over basic math?