KJBeacon can find nearby iBeacon devices and make your iOS device to transmit as an iBeacon. Set the iBeacon data then you can know you are inside or outside the region. This app can help you to understand what informations iBeacon need and how it work.