I'm a n00b, but I'd guess you first want to read in all your KML polygons and create GPolygon objects, then loop through all the polys using Mike Williams' tool: http://econym.org.uk/gmap/epoly.htm polygon.Contains(latlng)
There may be issues with making sure your GPolygons are global-- someone more skilled than I may be able to help. Also, I've not used KML so don't ask me how to do that first part! ;) -Brian On Apr 21, 5:01 pm, MagiCat <[email protected]> wrote: > I have a map that I created which shows the new trash days for > customers within our service area. The map is located at: > > http://www.alliedwasteidaho.com/trash-and-recycling/collection-map.ph... > > The service areas are defined as Polygons inside of a KML file. What > I'm wanting to do is have a user enter an address in the text box > above the map and have it show which day they will have their trash > picked up assuming they are within the overall service area. Right > now, it just shows their address. > > I've seen several example of how to determine whether a point is > within a polygon but none that appear to work when you use a KML file. > > Thanks, > > Mark --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
