<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000099" bgcolor="#ffffff">
<font size="-1"><font face="Verdana">Aha, thank you!<br>
<br>
It would be easier if one could see such a method also for
LineString in the documentation though.<br>
<br>
Janis<br>
</font></font><br>
On 2011.05.10. 12:05, emmexx wrote:
<blockquote cite="mid:4DC8FFEC.8090404@tiscalinet.it" type="cite">
<pre wrap="">Il 05/10/2011 10:45 AM, Janis Elmeris scrisse:
</pre>
<blockquote type="cite">
<pre wrap="">Hello!
Is getting all vertices (getVertices) of a LineString and using their
distanceTo method and summing all the distances together would be the
right way to calculate the length of a line string? If yes, why isn't it
a standard function of LineString (it seems to me that it should be, and
also Google maps API has such).
</pre>
</blockquote>
<pre wrap="">
What about getLength() ? :-)
Api: Geometry.Collection
Bye
        maxx
</pre>
</blockquote>
</body>
</html>