On Apr 24, 10:11 pm, Mark Thompson <[email protected]> wrote: > Using API version 2 I wrote an application: > > http://www.alliedwasteidaho.com/trash-and-recycling/collection-map.ph... > > 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:
That library was written for v2 of the Google Maps API. I ported a version of it to v3: http://geocodezip.com/scripts/v3_BdccGeo.js I'm not sure if it will work for you (I modified it somewhat for my own purposes). -- Larry > > http://www.alliedwasteidaho.com/trash-and-recycling/collection-map2.p... > (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.
