Get Current Location and load on GoogleMap
Hi guys! This tutorial might be helpful to all developer to get the current location and show the current location on GoogleMap. To access the current location we need to use the Geo location. So what is the GeoLocation? "The geolocation object provides access to location data based on the device's GPS sensor or inferred from network signals." Geolocation provides information about the device's location, such as latitude and longitude. Common sources of location information include Global Positioning System (GPS) and location inferred from network signals such as IP address, RFID, WiFi and Bluetooth MAC addresses, and GSM/CDMA cell IDs. There is no guarantee that the API returns the device's actual location. With the help of this navigator.geolocation.getCurrentPosition(onSuccess, onError, { enableHighAccuracy:true }); getCurrentPosition is the method for get the current latitude and longitude.Here we see enableHighAccurary:ture it means if the networ...