Current Location Of user

I am making a navigation/ map app and i want the current location of the user (Lat and Lang) without moving the phone. While using location sensor or map, m not getting the co ordinates. How should I do it pls help.

error :-

Errorbody {background-color: #fff; margin: 0, padding : 0;} errorMessage {font-family: Arial, san-serif; font-size: 12pt; font weight: bold; line-height: 150%; padding-top: 25px;} TypeError: Cannot read property "Formatted_address" from undefined. line19, file "code", project "GetAddressOfLatLang")

Thank You