On Jul 27, 8:41 am, ss <[email protected]> wrote: > Dear All, > I have been using the function below to focus my map to > the searched address. It works well for most of the address > surpisingly if I key address like Jalan SS23/11 or Jalan SS2 it give > me address not found. But if I try the same address > onhttp://maps.google.com.my > it shows. So what can be my problem? Thank you.
http://code.google.com/apis/maps/faq.html#geocoder_differences -- Larry > function showAddress() { > //alert("TEST:"+document.form2.address.value); > > var inputAddress = document.form2.address.value; > if (geocoder) { > geocoder.getLatLng( > inputAddress, > function(point) { > if (!point) { > alert(inputAddress + " not found"); > } else { > var pointString = point.toString(); > //alert("pointString : "+pointString); > var arrayPoint1Split = pointString.split("("); > var > arrayPoint2Split=arrayPoint1Split[1].split(")"); > var > arrayPoint3Split=arrayPoint2Split[0].split(","); > > //alert("Point"+arrayPoint3Split[1]); > map.setCenter(new > OpenLayers.LonLat(arrayPoint3Split[1], > arrayPoint3Split[0]).transform(srcEPSG, destEPSG), 15); > > } > } > ); > } > } -- 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.
