Using API version 2 I wrote an application: 

http://www.alliedwasteidaho.com/trash-and-recycling/collection-map.php?location=Eagle&location_uid=419bf517d7a0e7e668c2984d31a3ff3f

which determines a service day given an address.  Embedded in this is logic 
which allows the program to determine if the location is within a couple of 
hundred feet away from a border to tell them they should give us a call.   I 
did this using the function bdccGeoDistanceToPolyMtrs from BdccGeo.js

The call to the function looked like this:

var distance = bdccGeoDistanceToPolyMtrs(exml.gpolygons[i], point);

I'm attempting to do the same thing but with the function call:

var distance = bdccGeoDistanceToPolyMtrs(geoXml.docs[0].gpolygons[i], 
point);

but it doesn't work.  I've narrowed it down to this line (omitting it makes 
the program work.   If helpful, the test version is at:

http://www.alliedwasteidaho.com/trash-and-recycling/collection-map2.php?location=Eagle&location_uid=419bf517d7a0e7e668c2984d31a3ff3f
    
(note it has a 2 in the filename).

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