[Google Maps API v3] (API V3)Google places query results are incomplete
Hi everybody, I've written an App that uses google places API V3 for searching restaurant and museum, near a user choosen street. The restaurant part return a number of significatives places and works well. Instead the museum part have no query results, the only thing I've changed is the types array, from restaurant to museum. The weird thing is that if I search for example Cenacolo, Milano in the google place page, I can find it with his own page. If i search for museum in santa maria delle grazie square (where is located cenacolo), even with a huge radius, with the google apis in my App, I have no results. I even seen that Cenacolo in the place page is marked as museum, so what is the problem? I cannot understand why It didn't work. thanks for the patience, sorry for the bad english. Bye -- 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
[Google Maps API v3] geocoder with global variables
Hi everyone, im using the geocoder.geocode method for coding a place into numeric coordinates. the problem is that, even if I use global variables if I do an assignment inside the geocoder.geocode method to that variables, the outside variable will be not modified. for example: geocoder.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { var marker = new google.maps.Marker({ map: map, position: results[0].geometry.location }) coordinates = results[0].geometry.location; } else { alert("Geocode was not successful for the following reason: " + status); } }); alert(coordinates); coordinates outside this is still undefined!!1 But why?? coordinates must be global... I dont know what to do. please help. to the moderators, the code is included only for example, its because i didnt uploded the code on a website. -- 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.