> Was wondering if anyone discovered an answer on how to determine if an > address is within a polygon that's defined by a KML file.
The answers are above. > Lots of > examples, but it appears that all of the answers are based on loading > an XML file line by line, polygon by polygon, not on how to do this if > loading the KML file all at once. Whatever method you use to load your KML, if you want to do comparisons with any polygons it contains, you need a means to 'get hold' of those individual polygons to do the comparison. Once you have a reference to your polygon(s) you've already found how to do the point-in-poly analysis. Of course, you'll first need to turn your address into a point, but that's just geocoding. This (poly objects from KML) gets discussed regularly in this group, and it boils down to - GGeoXml makes it difficult. It's easier to get references to your polygons using alternative GeoXml or EGeoXml parsers. You can always write your own parser. cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
