Change getCurrentPosition to watchPostion to solve the problem with geolocation API

watchPosition method will constantly updates the latitude and longitude, if we move from one place to another place.