I tried to add marker by allowing user to enter the address they want
to find. It works perfectly for places such as home addres, state,
city but not work when the address is an business name type such as
"Swinburne bookshop" or any other Bookshops and it returns "......."
not found. Can you please help???

function addMarker(){
geocoder = new GClientGeocoder();
var address = document.getElementById("address").value;
geocoder.getLatLng(address, function(point) {
if (!point) {alert(address + " not found");
}else{
map.setCenter(point, 13);
var marker = createMarker(point, address);
map.addOverlay(marker);
marker.openInfoWindowHtml(address);
saveMarker(point, address);
}
});
}

Rgds

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to