Reverse geocoding works great for getting the coordinates of a valid
postal address. The API call, however, does not return a point or
array of points if the query is something like 'www.mcdonalds.com'. If
you pass this search term into http://maps.Google.com, it does show
every McDonalds within the current viewport. Is there a way to utilize
the API in the same way that http://maps.google.com handles this?
As an example:
....
var geocoder = new GClientGeocoder();
function showAddress(address, fullContactHtml) {
geocoder.getLatLng(address,
function(point) {
/********** 'point' is null here when this function is called
*************/
var marker = new GMarker(point);
map.addOverlay(marker);
marker.bindInfoWindow(fullContactHtml);
})
}
showAddress("www.mcdonalds.com", "<b>MacDonald's</b>");
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.