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
which worked well in this example
but for some reason didn't work on my computer. I'm not sure why that went wrong there.