W3C has introduced geolocation API in html5. We can use this API to get geographic location of client side device using javascript. Location of device determined by various sources like GPS, wifi network, Bluetooth mac address, GSM/CDMA cell IDs etc. In this article i will explain how to use this API.
List of Geolocation API capable browsers
- Internet Explorer 9+
- Firefox 3.5+
- Chrome
- Safari 5+
- Opera 10.6+