Seems pretty straightforward
You want to compare if geolocation.longtitude is between a minimum number and a maximum number
and if geolocation.lattitude is between a minimum and a maximum number
if both these conditions are true you are within a certain square on the map..