On Oct 1, 1:54 pm, raulete <[EMAIL PROTECTED]> wrote: > Hi all! > > Is my first post and I´m nervous :P I use the group like reader but is > the first time i have a problem that anyone ask before. > > Can I know if a GDirections contains another GDirections? How? > > Example: I have a GDirection of a Street or route, and other route > which contains or pass over the first one. Can I detect that?
You can detect the intersection of 2 polylines: http://groups.google.com/group/Google-Maps-API/browse_frm/thread/9a3908309589832e/5559ada61e38f536?lnk=gst&q=polyline+intersection#5559ada61e38f536 > > If i couldn't... Can I know the geocodes that formed the GDirections? You can get the directions polyline using the getPolyline() method of GDirections http://code.google.com/apis/maps/documentation/reference.html#GDirections.Methods You can get ther vertices of the polyline by using the getVertex & getVertexCount methods of GPolyline: http://code.google.com/apis/maps/documentation/reference.html#GPolyline.Methods GPolyline.getVertexCount() Number Returns the number of vertices in the polyline. (Since 2.46) GPolyline.getVertex(index) GLatLng Returns the vertex with the given index in the polyline. (Since 2.46) -- Larry > > Byes > > PD:Excuse me if my english isn't very well --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
