How to get visitor's location (i.e. country) using javascript geolocation
I'm looking for a javascript library to extend the native geolocation function

    if(navigator.geolocation) {
    		navigator.geolocation.getCurrentPosition(function(position) {
    			var latitude = position.coords.latitude;
    			var longitude = position.coords.longitude;
    		});
    	}
so that I could use the visitor's country name (perhaps return an informative array).

So far all I've been able to find are functions that display a google maps interface but none actually gave what I want, except for [this library][1] which worked well [in this example][2] but for some reason didn't work on my computer. I'm not sure why that went wrong there.

Anyways, do you know a javascript library that can simply return an array containing  information like country, city etc from latitude and longitude values?

Thanks.


  [1]: http://www.azarask.in/blog/post/firefox-geolocation-js-library/
  [2]: http://azarask.in/projects/geolocation/MockGeolocation.html
How to get visitor's location (i.e. country) using javascript geolocation
===

I'm looking for a javascript library to extend the native geolocation function

    if(navigator.geolocation) {
    		navigator.geolocation.getCurrentPosition(function(position) {
    			var latitude = position.coords.latitude;
    			var longitude = position.coords.longitude;
    		});
    	}
so that I could use the visitor's country name (perhaps return an informative array).

So far all I've been able to find are functions that display a google maps interface but none actually gave what I want, except for [this library][1] which worked well [in this example][2] but for some reason didn't work on my computer. I'm not sure why that went wrong there.

Anyways, do you know a javascript library that can simply return an array containing  information like country, city etc from latitude and longitude values?

Thanks.


  [1]: http://www.azarask.in/blog/post/firefox-geolocation-js-library/
  [2]: http://azarask.in/projects/geolocation/MockGeolocation.html