> I can find the closest vertex easily but then I'm a little bit stuck
> trying to figure out which segment the point belongs to.

If you know the closet vertex (N), you might compare the distance from
target to vertex N+1 and N-1, to find the 'next closest' point.  Then
insert the new point in between.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to