On Apr 21, 2: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.
You need to use one of the 3rd party parsers to load your KML so you can get access to the polygons. EGeoXml or GeoXml Then use epoly.Contains as Brian P. suggests. -- Larry --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
