I have sets of co-ordinates in the following format
(-33.9,18.6)
How do I go about getting the name of the nearest town or Country for those co-ords? I'm guessing it will involve Javascript, but am happy to also use PHP if appropriate?
EDIT: Am trying the Google Reverse Geocoder but having trouble with it. The following code is pretty identical to one of their examples but doesn't seem to be running at all... any ideas why?
<script type="text/javascript" charset="utf-8">
function reverseGeocode(lat,lon){
var geocoder = new GClientGeocoder();
var latlng = new GLatLng(lat, lon);
geocoder.getLocations(latlng, function(addresses) {
alert(addresses);
});
}
</script>