What a geofence is
The term comes from GPS and mobile apps: a virtual perimeter around a real place that fires an event when a phone crosses it. A geofence has two parts. The shape is a circle or, more often indoors, a polygon: a room, a bay, a door zone or a floor. The rule says what happens when something is detected relative to that shape.
Indoor geofencing applies the same idea inside buildings. The shape comes from a floor plan, the positions come from an indoor positioning system such as RFID, BLE or UWB, and because buildings have several levels, a geofence has to know which floor it belongs to.