The iphone does not allow background processes and does not have the battery to run something all the time.
A better way would be to have a stand-alone device that can connect to any cell phone with bluetooth. Then the problem will be getting a signal from the bottom of a ditch... The device would need to get the location information from the phone, too. If I knew how to build that sort of thing...
The iphone does not allow