]> git.street.me.uk Git - andy/gpx.git/blobdiff - src/libgpx/geographic.php
Add length measurement to geographic classes
[andy/gpx.git] / src / libgpx / geographic.php
index 2d5e54915699f9859b0fd1025778db74e2dbdb76..7e692f1853753fb99e72aa286bdea5f4ef9c94d3 100644 (file)
@@ -39,4 +39,12 @@ interface Geographic
    *         null if not applicable.
    */
   public function getBounds();
+
+  /**
+   * Fetch the length of a geographic element.
+   *
+   * @return float The length in meters.
+   */
+  public function getLength();
+
 }