GeoLength
✖
GeoLength
Details and Options

- The path g in GeoLength[g] can be any one-dimensional geo primitive, such as GeoPath, GeoCircle, or GeoVisibleRegionBoundary.
- GeoLength[GeoPath[{p1,p2,…}]] computes the length of the path formed by geodesic segments joining the locations pi.
- JoinedCurve and GeoGroup can be used to combine multiple paths.
- GeoLength[g] returns a Quantity object with units of length.
- GeoLength[{g1,g2,…}] gives {GeoLength[g1],GeoLength[g2],…}.
- Possible options of GeoLength include:
-
GeoModel Automatic model of the Earth or celestial body UnitSystem $UnitSystem unit system to use in the result
Examples
open allclose allBasic Examples (4)Summary of the most common use cases
Compute the total length of a geo path on the Earth:

https://wolfram.com/xid/0cg5bnh6y-qzy371

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

https://wolfram.com/xid/0cg5bnh6y-hqfrjt

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

https://wolfram.com/xid/0cg5bnh6y-6bmwyl

Length of the Earth's equator:

https://wolfram.com/xid/0cg5bnh6y-pj8662


https://wolfram.com/xid/0cg5bnh6y-cygb7y

Compute the perimeter of a geo disk:

https://wolfram.com/xid/0cg5bnh6y-qn6xl0

Scope (3)Survey of the scope of standard use cases
Compute the length of different one-dimensional geo elements:

https://wolfram.com/xid/0cg5bnh6y-zicct3


https://wolfram.com/xid/0cg5bnh6y-jlk5xz


https://wolfram.com/xid/0cg5bnh6y-emi5c9


https://wolfram.com/xid/0cg5bnh6y-mngr49

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

https://wolfram.com/xid/0cg5bnh6y-jxzqnl

https://wolfram.com/xid/0cg5bnh6y-pmf6rw

https://wolfram.com/xid/0cg5bnh6y-habiu0


https://wolfram.com/xid/0cg5bnh6y-1rz6mm

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

https://wolfram.com/xid/0cg5bnh6y-v3stdm

Paths of different types can be combined with GeoGroup:

https://wolfram.com/xid/0cg5bnh6y-rcg7cd

https://wolfram.com/xid/0cg5bnh6y-6vatuw


https://wolfram.com/xid/0cg5bnh6y-y60h42

Generalizations & Extensions (1)Generalized and extended use cases
Options (2)Common values & functionality for each option
UnitSystem (1)
Use the units determined by the value of $UnitSystem:

https://wolfram.com/xid/0cg5bnh6y-d9qs04


https://wolfram.com/xid/0cg5bnh6y-rfv5ov

Specify the unit system to use:

https://wolfram.com/xid/0cg5bnh6y-rjvzdd

Applications (2)Sample problems that can be solved with this function
Compute the length of the boundary of a country from its polygon:

https://wolfram.com/xid/0cg5bnh6y-yc0eid

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

https://wolfram.com/xid/0cg5bnh6y-2mxva3

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

https://wolfram.com/xid/0cg5bnh6y-427wn1


https://wolfram.com/xid/0cg5bnh6y-orb1au

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]:

https://wolfram.com/xid/0cg5bnh6y-e0x622


https://wolfram.com/xid/0cg5bnh6y-w42sxy


https://wolfram.com/xid/0cg5bnh6y-2ahtfk

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
]}
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
]}