When using Googles geocoder service to display a city on a map; filling out a non-existing city results in an error.
Is there a way to display some suggestions based on the filled out city?
var geocoder = new GClientGeocoder();
function showAddress(address, zoom) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
//no point found....
//Suggest some points :)
} else {
map.setCenter(point, zoom);
}
}
);
}
showAddress('Someplace, Nederland', 14);