I updated my code at the same address. http://proudly-geek.com/maptest/testapiplace.html
I'm still stuck with the same problem. I've found that on the API V2, the function runs with localsearch function, but not find similar objects in the Places V3 librairie. No solution on V3 to have this formatted_address (or equivalent) object at the place of place.name in my infowindow call ? Thanks a lot by advance ! On Jun 9, 12:11 am, Alex <[email protected]> wrote: > Yes, i know that. > But is there any solution to display in my infowindow the full > address ? > An object maybe ? > > Thx > > On Jun 8, 5:00 pm, en4ce <[email protected]> wrote: > > > > > > > > > that happens here and there (my self just saw that on > > formatted_phone_number), just do a check like > > > if (place.formatted_address==undefined){do what you want} > > > On 8 Jun., 15:39, Alex <[email protected]> wrote: > > > > Ultimate last question. > > > I want to display the full adress of each place in the infowindow. > > > I tried to use place.formatted_address object, but this one appear > > > undefined. > > > > An idea to display it ? > > > > google.maps.event.addListener(marker, 'click', function() { > > > infowindow.setContent(place.name+" "+place.formatted_address); > > > infowindow.open(map, this); > > > > On Jun 8, 11:58 am, Alex <[email protected]> wrote: > > > > > Yes, the problem came from the string. > > > > Using the results[0].geometry.location object, it's working well > > > > now :) > > > > > Thanks a lot for your help !! > > > > > Additionnal last question : do you know if there's any radius limit on > > > > the place search ? > > > > > On Jun 7, 11:49 pm, Rossko <[email protected]> wrote: > > > > > > > I updated the code with changes you requested. Now all the script > > > > > > looks running well, but still no marker on the map. > > > > > > In your new callback - > > > > > var locationArea = results[0].geometry.location.lat()+", "+results > > > > > you make a string, then > > > > > var storeArea = new google.maps.LatLng(locationArea); > > > > > LatLng expects to be given two numbers, not one string. > > > > > > Have you considered using results[0].geometry.location directly as > > > > > this is already a LatLng > > > > > ?http://code.google.com/apis/maps/documentation/javascript/services.ht... > > > > > > The next problem might be with trying to reference a function before > > > > > you have declared it (depending on your browser) > > > > > service.search(request, callback); > > > > > function callback(results, status) { -- 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.
