WOLFRAM

gives the length of the geo path g.

Details and Options

Examples

open allclose all

Basic Examples  (4)Summary of the most common use cases

Compute the total length of a geo path on the Earth:

Out[1]=1

Compute the total length of a path formed by geodesic segments:

Out[1]=1

Compute the total length of the rhumb lines joining the same points:

Out[2]=2

Length of the Earth's equator:

Out[1]=1

Length of a full meridian:

Out[2]=2

Compute the perimeter of a geo disk:

Out[1]=1

Scope  (3)Survey of the scope of standard use cases

Compute the length of different one-dimensional geo elements:

Out[1]=1
Out[2]=2
Out[3]=3
Out[4]=4

Length of the perimeter of a region with holes, as a single joined object:

Out[3]=3
Out[4]=4

It can also be obtained by adding the lengths of the outer and inner curves:

Out[5]=5

Paths of different types can be combined with GeoGroup:

Out[2]=2
Out[3]=3

Generalizations & Extensions  (1)Generalized and extended use cases

GeoLength[Line[{p1,p2,}]] is equivalent to GeoLength[GeoPath[{p1,p2,}]] for geo locations pi:

Out[1]=1
Out[2]=2

Options  (2)Common values & functionality for each option

UnitSystem  (1)

Use the units determined by the value of $UnitSystem:

Out[1]=1
Out[2]=2

Specify the unit system to use:

Out[3]=3

GeoModel  (1)

Length of a geo path on the Earth:

Out[1]=1

Length of the corresponding path on Mars:

Out[2]=2

Applications  (2)Sample problems that can be solved with this function

Compute the length of the boundary of a country from its polygon:

Out[1]=1

That value is shorter than the actual length of the boundary, due to approximations in the polygon:

Out[2]=2

The length of a segment of parallel, or the projection on a parallel of any geo path, is called departure:

Out[1]=1

Express it in nautical miles:

Out[2]=2

Properties & Relations  (1)Properties of the function, and connections to other functions

For a geo path defined by a list of points, GeoLength[GeoPath[list]] is equivalent to GeoDistance[list]:

Out[1]=1
Out[2]=2
Out[3]=3
Wolfram Research (2016), GeoLength, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoLength.html.
Wolfram Research (2016), GeoLength, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoLength.html.

Text

Wolfram Research (2016), GeoLength, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoLength.html.

Wolfram Research (2016), GeoLength, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoLength.html.

CMS

Wolfram Language. 2016. "GeoLength." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoLength.html.

Wolfram Language. 2016. "GeoLength." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoLength.html.

APA

Wolfram Language. (2016). GeoLength. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoLength.html

Wolfram Language. (2016). GeoLength. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoLength.html

BibTeX

@misc{reference.wolfram_2025_geolength, author="Wolfram Research", title="{GeoLength}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/GeoLength.html}", note=[Accessed: 05-June-2025 ]}

@misc{reference.wolfram_2025_geolength, author="Wolfram Research", title="{GeoLength}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/GeoLength.html}", note=[Accessed: 05-June-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_geolength, organization={Wolfram Research}, title={GeoLength}, year={2016}, url={https://reference.wolfram.com/language/ref/GeoLength.html}, note=[Accessed: 05-June-2025 ]}

@online{reference.wolfram_2025_geolength, organization={Wolfram Research}, title={GeoLength}, year={2016}, url={https://reference.wolfram.com/language/ref/GeoLength.html}, note=[Accessed: 05-June-2025 ]}