Hey,
I am having some trouble with Google Maps API... I have the following code:
function geocodePosition(pos) {
geocoder.geocode({
latLng: pos
}, function(responses) {
if (responses && responses.length > 0) {
updateMarkerAddress(responses[0].formatted_address);
} else {
updateMarkerAddress('Cannot determine address at this location.');
}
});
}
However this shows the full address.... However I only want it to show the Town/City County and Country EG:
York, Yorkshire, England
Can anyone help me change my code to return this result to the function updateMarkerAddress();
Dan