Hi Rossko,

Thanks for the details, i'm beginning to reach the final line :) but
not yet.
Is it possible to use service.getDetails method in addition of my
service.search ?
I've tried it (my code), with no success for the moment.

service.getDetails seems to be use for a unique request, so i can't
use it for my whole first search (looking for store in a radius), have
I need to put it after the search method.
Looking on my code, i don't really know where to place the getDetails
method to apply it on all my markers places found.

Thx !

On Jun 9, 11:08 am, Rossko <[email protected]> wrote:
> > No solution on V3 to have this formatted_address (or equivalent)
> > object at the place of place.name in my infowindow call ?
>
> Of course, but you have to write code to do it.
> Places results are described 
> athttp://code.google.com/apis/maps/documentation/places/#PlaceSearchRes...
> have you looked at the 'vicinity' ?
>
> The next section describes Place 
> Detailshttp://code.google.com/apis/maps/documentation/places/#PlaceDetails
> the methods used there apply to the HTTP service, not directly to the
> PlacesService of the maps API, but the reference outlines how to
> retrieve the 
> detailshttp://code.google.com/apis/maps/documentation/javascript/reference.h...
> with getDetails()
>
> It doesn't seem to be well documented yet.
>
>
>
>
>
>
>
>
>
> > 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) {- Hide quoted text -
>
> > - Show quoted text -

-- 
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.

Reply via email to