I am using Google Map's ClientLocation
to retrieve the users geolocation (via their IP address). This is very slow because you first have to download and then load Google Maps, before it can even begin to geolocate the users IP address.
Then I came across http://fwix.com/. They are doing exactly what I want, but super fast without having to use Google Maps ClientLocation
.
It appears they are generating the HTML page on the fly and injecting the latitude and longitude into the META
area of the HTML.
Just view the source for fwix.com and you'll see something like:
<meta name="geo_lat" content="12.34567" />
<meta name="geo_lng" content="-98.76543" />
Questions:
- How does fwix doing this?
- What is the quickest way for me to retrieve a users geolocation (lat/lng) without having to load the entire Google Maps API? Meaning, if there a web service I can call programically that will simply return the users geolocation (lat/lng)?