Facebook does it, so you can do it too. Im talking about getting the users location when they are interacting with your website. Whereas previously you had to rely on IP address based solutions, now the modern web browsers that support HTML 5 allow you to get this information easily. 10.1. 50.0.  Firefox includes support for locating you based on your WiFi information using Google Location Services.See also. navigator.geolocation. Plotting yourself on the map. Now that weve tied in the Google Maps API, lets integrate this call into our HTML5 Geolocation script. Putting it all Together. In our original locationRequest function, we grabbed the latitude and longitude values from the current position of the machine. I am trying to use google maps api and the html geolocation to get my current location. Here is the codes. The console in browser does not throw any error or whatsoever. Now that weve tied in the Google Maps API, lets integrate this call into our HTML5 Geolocation script. Putting it all Together.