I am building a map services website. Using "20635 ne 25th ct" as an example, on maps.google.com, it returns a house in Sammamish WA 98074. But with my codes:
geocoder.geocode({'address': address}, function (results, status) {
if (status == google.maps.GeocoderStatus.OK) {
alert(results.length);
var coordinates = results[0].geometry.location;
lat = coordinates.lat();
lng = coordinates.lng();
_CallBack();
} else {
alert("Geocode was not successful for the following reason: " + status);
}
});
it returns a very different location: 40.6086666, -96.68688929999996
However, if I use full address "20635 ne 25th ct sammamish wa 98074", then the codes returns the same as maps.google.com
Any clue?