Help with Share location feature of app

I am right now developing an app that gas one of its feature as sharing your location with you emergency contacts, how can I do it using a link(share link location) via sms , i know how to get the location but how do I get the link of the location as we get it when we do the same in google, sharing the latitude and longitude is not a good solution as this feature is for emergency use

Check out example #3 Get Started  |  Maps URLs  |  Google Developers on how to build a google maps link with latitude and longitude.