# Method LengthGeodetic

#### LengthGeodetic(Geometry, LinearUnit, GeodeticCurveType)

Gets the geodesic length for the Geometry passed in.

##### Declaration

`public static double LengthGeodetic(this Geometry geometry, LinearUnit linearUnit = null, GeodeticCurveType geodeticCurveType = GeodeticCurveType.Geodesic)`

##### Parameters

Type | Name | Description |
---|---|---|

Geometry | geometry | The geometry to calculate the geodesic length for. |

LinearUnit | linearUnit | The linear unit of measurement the length value is returned. If |

GeodeticCurveType | geodeticCurveType | The type of curve to calculate. |

##### Returns

Type | Description |
---|---|

System.Double | The calculated geodesic length in meters. |

##### Remarks

Geodesic length is calculated using only the vertices of the polygon and define the lines between the points as geodesic segments independent of the actual shape of the polygon. A geodesic segment is the shortest path between two points on an ellipsoid. Thus, if you have a line that spans the width of the world, with only two vertices, each on the edges of the map, the geodesic length would be zero (shortest distance between the two vertices).

Supports true curves, calculating the result by densifying curves.

### Applies to

## Platforms and versions

Target | Versions |
---|---|

.NET Standard 2.0 | 100.3 - 200.4 |

.NET | 100.13 - 200.4 |

.NET Windows | 100.13 - 200.4 |

.NET Android | 200.0 - 200.4 |

.NET iOS | 200.0 - 200.4 |

.NET Framework | 100.0 - 200.4 |

Xamarin.Android | 100.0 - 100.15 |

Xamarin.iOS | 100.0 - 100.15 |

UWP | 100.0 - 200.4 |