On Sep 17, 1:21 pm, Paybak <[email protected]> wrote: > Now just the distance problem...... > > I need the distance from point1 to point2.
If you have this var polyline = new GPolyline( [ point1 , point2 ]) ; then you can do this var polylength = polyline.getLength(); getLength returns the length of the polyline in metres (just the number, probably to some ridiculous precision). > I have tried using "getdistance" but I don't understand the API > documentation for it. > I'm not use to programming in either HTML or Java so any help would be > appreciated. Java won't help much with Javascript. And "getdistance" should be "getDistance" and is used with GDirections. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
