I've been looking around trying to figure out how to get a GLatLng
from a google.maps.LocalSearch() result, so I can test whether it's
contained within a polygon. I'm sure it can be done if I don't use the
LocalSearch feature (using instead the GClientGeocoder), but I'd
really love to still use the LocalSearch control. If I have to, I'll
rewrite and use the GClientGeocoder instead. Is there an easy way to
do this I haven't found?

Here's the code snippet where I add the LocalSearch control:
    var options = {
      suppressZoomToBounds : true,
      suppressInitialResultSelection : true,
      searchFormHint : "Enter address"
    };

    var searchControl = new google.maps.LocalSearch(options);
    map.addControl(searchControl);

You can see the whole thing at:
http://www.healthypetmobilevet.com/area.shtml
and the javascript for the map is at:
http://www.healthypetmobilevet.com/map.js

Thanks,

Brian P

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to