Using geolocation API to obtain current position.