On Mar 30, 7:08 am, fs <[email protected]> wrote: > 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 intohttp://maps.Google.com, it does show > every McDonalds within the current viewport. Is there a way to utilize > the API in the same way thathttp://maps.google.comhandles this?
Geocoding is not about burgers. Look at the Ajax Search API instead: http://code.google.com/apis/ajaxsearch/documentation/ -- Marcelo - http://maps.forum.nu -- > > 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.
