Actually it does exist, and is called SARLOC, it was developed by Mountain Rescue in the UK.

https://www.ukclimbing.com/articles/skills/using_sarloc_for_rescue_on_your_smartphone-10917

It does what Tim below suggests and returns the Lat/Lon.