HTML5 Geolocation – HTML API
HTML5 Geolocation is application programming interface which is used to get the geographical position of a user. It will locate the client positions via map or coordinates
The HTML5 Geolocation API is used to get the geographical position of a user. Unfortunately, since this can compromise user privacy, the position is not available unless the user approves it. W3C has developed a set of APIs to effectively allow the user or client-side device to retrieve geographic positioning information with JavaScript.
HTML5 Geolocation Supported Devices
- Firefox 3.5+
- Chrome 5+
- iPhone Safari
- Opera 10.6+
- Opera Mobile 10.1+
- Safari 5+
- iPhone 3.0+
- Android 2.0+
- Internet Explorer 9+
- Symbian (S60 3rd & 5th generation)
- Palm WebOS 2.0+
- Blackberry OS 6
- Maemo
Working of Browser Geolocation
To summarize the location of a client, one would typically have to test the IP address of the of the system and stroke the reasonable guess as to the where that system was located .The retrieval of geographic positioning information is done with java script.
One substantial application that uses to find geographical positioning is Google Maps.
Click the button to get your coordinates:
Displaying the Result in a Map
Click the button to get your position.
Conclusion:
The Geolocation is very useful while interacting with customers and giving them visual instructions. You can use it to show the location to your client and display it on your website.