I created the following function in a service, to get the coordinates of the current location and store them in 2 variables:
getCurrentLocation() { if (nav
Just in case if you want continually request the position, then use
navigator.geolocation.watchPosition(res => ...