Geofencing is a function in a software program that uses the Global Positioning System (GPS) or Radio Frequency Identification (RFID) to define geographic boundaries.