-
See Also
- Latitude
- Longitude
- GeoPosition
- GeodesyData
- DMSString
- DMSList
-
- Interpreter Types
- GeoCoordinates
- Related Guides
LatitudeLongitude[pos]
gives a list of the latitude and longitude in degrees of a geographic position specified by pos.
LatitudeLongitude[pos,datum]
gives the latitude and longitude referring to the specified geodetic datum.
LatitudeLongitude
LatitudeLongitude[pos]
gives a list of the latitude and longitude in degrees of a geographic position specified by pos.
LatitudeLongitude[pos,datum]
gives the latitude and longitude referring to the specified geodetic datum.
Details
- LatitudeLongitude[pos] returns a pair {lat,lon} of Quantity angles in degrees .
- Latitude is in the range
to
. - Longitudes are taken to be positive to the east.
- The position pos in LatitudeLongitude[pos] can be a GeoPosition, GeoGridPosition, or other position object. It can also be a geo Entity object.
- LatitudeLongitude[] is equivalent to LatitudeLongitude[$GeoLocation].
- LatitudeLongitude gives the geodetic latitude; GeodesyData gives conversions to other forms of latitude.
- If no datum is given, LatitudeLongitude assumes positions to refer to the International Terrestrial Reference Frame 2000.
Examples
open all close allBasic Examples (4)
Extract the latitude and longitude from a geodetic position:
LatitudeLongitude[GeoPosition[{40.11, -88.24}]]Compute the latitude and longitude of a position given in projected coordinates:
LatitudeLongitude[GeoGridPosition[{-0.126, -0.046}, "Gnomonic"]]Latitude and longitude of Madrid:
LatitudeLongitude[Entity["City", {"Madrid", "Madrid", "Spain"}]]Compute the latitude and longitude of a geodetic position, transforming to the "NAD83CORS96" datum:
LatitudeLongitude[GeoPosition[{0.1, -90}], "NAD83CORS96"]Scope (10)
Find your current latitude and longitude:
LatitudeLongitude[]This is equivalent to the following:
LatitudeLongitude[$GeoLocation]Extract the latitude and longitude of a GeoPosition object:
LatitudeLongitude[GeoPosition[{-12.34, 56.78}]]Compute the latitude and longitude of any type of geo location:
GeoPositionXYZ[Here]LatitudeLongitude[%]GeoGridPosition[Here, "Albers"]LatitudeLongitude[%]Get the latitude and longitude of a geo entity:
LatitudeLongitude[Entity["Building", "EiffelTower::5h9w8"]]This is equivalent to the following:
Entity["Building", "EiffelTower::5h9w8"]["Position"]LatitudeLongitude[%]Extract the latitudes and longitudes of the locations in a GeoPosition array:
GeoPosition[{{17.32, -58.61}, {-34.12, 125.32}, {50, 0}}]LatitudeLongitude[%]The result is given as a QuantityArray object, which can be normalized using Normal:
Normal[%, QuantityArray]Get the latitudes and longitudes of the elements of a geo entity class:
Normal[LatitudeLongitude[EntityClass["Building", "AcropolisAthens"]], QuantityArray]That is equivalent to the following:
EntityClass["Building", "AcropolisAthens"]["Position"]Normal[LatitudeLongitude[%], QuantityArray]Extract the longitude of a geo location in a given datum:
LatitudeLongitude[GeoPosition[{70, 0}], "NAD83CORS96"]LatitudeLongitude automatically threads over lists of locations:
LatitudeLongitude[{Here, Entity["City", {"NewYork", "NewYork", "UnitedStates"}], GeoPositionENU[{0, 0, 0}, GeoPosition[{50, 0}]]}]Normal[%, QuantityArray]Extract Exif location information from an image:
LatitudeLongitude[[image]]LatitudeLongitude["NorthPole"]LatitudeLongitude["NullIsland"]These are the current longitudes of the magnetic poles, as determined by GeomagneticModelData:
LatitudeLongitude["NorthGeomagneticPole"]LatitudeLongitude["NorthModelDipPole"]Properties & Relations (2)
Take a GeoPosition object:
pos = HereLatitudeLongitude returns the coordinates of that location as a pair of Quantity objects:
LatitudeLongitude[pos]The "LatitudeLongitude" property of GeoPosition objects returns a numeric result in degrees:
pos["LatitudeLongitude"]The presence of elevation or temporal data does not affect the values of latitude and longitude:
LatitudeLongitude[GeoPosition[{50, -30}]]LatitudeLongitude[GeoPosition[{50, -30, 1000, Now}]]See Also
Latitude Longitude GeoPosition GeodesyData DMSString DMSList
Interpreter Types: GeoCoordinates
Related Guides
Text
Wolfram Research (2008), LatitudeLongitude, Wolfram Language function, https://reference.wolfram.com/language/ref/LatitudeLongitude.html (updated 2020).
CMS
Wolfram Language. 2008. "LatitudeLongitude." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/LatitudeLongitude.html.
APA
Wolfram Language. (2008). LatitudeLongitude. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/LatitudeLongitude.html
BibTeX
@misc{reference.wolfram_2026_latitudelongitude, author="Wolfram Research", title="{LatitudeLongitude}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/LatitudeLongitude.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_latitudelongitude, organization={Wolfram Research}, title={LatitudeLongitude}, year={2020}, url={https://reference.wolfram.com/language/ref/LatitudeLongitude.html}, note=[Accessed: 13-June-2026]}