I have read this post and it looks very promising. However, the answer does not go in detail with regards the implementation.
Basically, given the latitude and longitude, how can I use the GeoNames Web Service to get the country. I would like the returned result to be stored in a variable so that I can then continue working with it as I wish.
Thanks in advance