On 22 March 2011 07:09, jem <[email protected]> wrote: > > I have this code.. a polyline looks like a polygon.. There's is a text > box that when input the address and hit enter then the google map goes > to that paticular location, However i want to know if the input > address is within the GPolyline or not and popup says "The location is > not within the polygon" if its not within the polygon.
For Version 2, have a look at Mike's EPoly extension, which adds a .Contains() method to polygons -- that is, it does the point-in-polygon analysis for you. http://econym.org.uk/gmap/epoly.htm Geocode the address, and [in the geocoder callback function] check the returned point is within the polygon > Please help me ASAP.. he he http://www.catb.org/~esr/faqs/smart-questions.html#urgent -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
