Longitude
Details

- Longitude[pos] returns a Quantity angle in degree.
- Longitudes are taken to be positive to the east.
- The position pos in Longitude[pos] can be a GeoPosition, GeoGridPosition, or other position object. It can also be a geo Entity object.
- Longitude[] is equivalent to Longitude[$GeoLocation].
- If no datum is given, Longitude assumes positions to refer to the International Terrestrial Reference Frame 2000.
Examples
open all close allBasic Examples (5)
Scope (10)
This is equivalent to the following:
Extract the longitude of a GeoPosition object:
Compute the longitude of any type of geo location:
Get the longitude of a geo entity:
This is equivalent to the following:
Extract the longitudes of the locations in a GeoPosition array:
Get the longitudes of the elements of a geo entity class:
That is equivalent to the following:
Extract the longitude of a geo location in a given datum:
Longitude automatically threads over lists of locations:
Extract Exif location information from an image:
These are the current longitudes of the magnetic poles, as determined by GeomagneticModelData:
Properties & Relations (2)
Take a GeoPosition object:
Longitude returns the longitude of that location as a Quantity object:
The "Longitude" property of GeoPosition objects returns a numeric result in degrees:
The presence of elevation or temporal data does not affect the value of longitude:
See Also
Latitude LatitudeLongitude GeoPosition GeodesyData DMSString DMSList SiderealTime
Interpreter Types: GeoCoordinates
Related Guides
Text
Wolfram Research (2008), Longitude, Wolfram Language function, https://reference.wolfram.com/language/ref/Longitude.html (updated 2020).
CMS
Wolfram Language. 2008. "Longitude." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/Longitude.html.
APA
Wolfram Language. (2008). Longitude. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Longitude.html
BibTeX
@misc{reference.wolfram_2025_longitude, author="Wolfram Research", title="{Longitude}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/Longitude.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_longitude, organization={Wolfram Research}, title={Longitude}, year={2020}, url={https://reference.wolfram.com/language/ref/Longitude.html}, note=[Accessed: 08-August-2025]}