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 allclose allBasic Examples (4)
Scope (10)
Find your current latitude and longitude:
This is equivalent to the following:
Extract the latitude and longitude of a GeoPosition object:
Compute the latitude and longitude of any type of geo location:
Get the latitude and longitude of a geo entity:
This is equivalent to the following:
Extract the latitudes and longitudes of the locations in a GeoPosition array:
The result is given as a QuantityArray object, which can be normalized using Normal:
Get the latitudes and 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:
LatitudeLongitude 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:
LatitudeLongitude returns the coordinates of that location as a pair of Quantity objects:
The "LatitudeLongitude" property of GeoPosition objects returns a numeric result in degrees:
The presence of elevation or temporal data does not affect the values of latitude and longitude:
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