WOLFRAM

LatitudeLongitude
LatitudeLongitude

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

Examples

open allclose all

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

Extract the latitude and longitude from a geodetic position:

Out[1]=1

Compute the latitude and longitude of a position given in projected coordinates:

Out[1]=1

Latitude and longitude of Madrid:

Out[1]=1

Compute the latitude and longitude of a geodetic position, transforming to the "NAD83CORS96" datum:

Out[1]=1

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

Find your current latitude and longitude:

Out[1]=1

This is equivalent to the following:

Out[2]=2

Extract the latitude and longitude of a GeoPosition object:

Out[1]=1

Compute the latitude and longitude of any type of geo location:

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

Get the latitude and longitude of a geo entity:

Out[1]=1

This is equivalent to the following:

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

Extract the latitudes and longitudes of the locations in a GeoPosition array:

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

The result is given as a QuantityArray object, which can be normalized using Normal:

Out[3]=3

Get the latitudes and longitudes of the elements of a geo entity class:

Out[1]=1

That is equivalent to the following:

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

Extract the longitude of a geo location in a given datum:

Out[1]=1

LatitudeLongitude automatically threads over lists of locations:

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

Extract Exif location information from an image:

Out[1]=1

Named locations:

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

These are the current longitudes of the magnetic poles, as determined by GeomagneticModelData:

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

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

Take a GeoPosition object:

Out[1]=1

LatitudeLongitude returns the coordinates of that location as a pair of Quantity objects:

Out[2]=2

The "LatitudeLongitude" property of GeoPosition objects returns a numeric result in degrees:

Out[3]=3

The presence of elevation or temporal data does not affect the values of latitude and longitude:

Out[1]=1
Out[2]=2
Wolfram Research (2008), LatitudeLongitude, Wolfram Language function, https://reference.wolfram.com/language/ref/LatitudeLongitude.html (updated 2020).
Wolfram Research (2008), LatitudeLongitude, Wolfram Language function, https://reference.wolfram.com/language/ref/LatitudeLongitude.html (updated 2020).

Text

Wolfram Research (2008), LatitudeLongitude, Wolfram Language function, https://reference.wolfram.com/language/ref/LatitudeLongitude.html (updated 2020).

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.

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

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

BibTeX

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

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

BibLaTeX

@online{reference.wolfram_2025_latitudelongitude, organization={Wolfram Research}, title={LatitudeLongitude}, year={2020}, url={https://reference.wolfram.com/language/ref/LatitudeLongitude.html}, note=[Accessed: 08-June-2025 ]}

@online{reference.wolfram_2025_latitudelongitude, organization={Wolfram Research}, title={LatitudeLongitude}, year={2020}, url={https://reference.wolfram.com/language/ref/LatitudeLongitude.html}, note=[Accessed: 08-June-2025 ]}