is a settable global variable that specifies the default geodetic location to use.



open allclose all

Basic Examples  (3)

Find your current geodetic location:

Draw geographic maps and primitives containing your geo location:

Compute distances and azimuths from your geo location:

Scope  (4)

The default value of $GeoLocation is given by FindGeoLocation:

It is computed using the "GeoIP" source:

Set a new value for your default geo location:

Then the source is "User":

Reset the value to its default:

The source is still "User":

Set $GeoLocation using a {lat,lon} pair in degrees:

The value assigned to $GeoLocation is a GeoPosition object:

Reset the value to its default:

Use Block to temporarily simulate that you are located at a different position:

Outside the Block scoping construct, the variable $GeoLocation still preserves its original value:

Properties & Relations  (4)

The values of $GeoLocation and Here coincide:

GeoGraphics with no positional information centers the map at $GeoLocation:

Set your default geo location to a different value:

Reset $GeoLocation:

Changing $GeoLocation updates $GeoLocationCity and $GeoLocationCountry automatically:

Reset to the current location:

Convert $GeoLocation into other geo position formats. A 3D vector from the center of the Earth:

A coordinate specification in any cartographic projection:

A 3D vector from some other geo location:

Possible Issues  (1)

Changing $GeoLocation does not automatically affect $TimeZone, which is independently settable:

$TimeZone still gives your current time zone, and not London's time zone:

Use LocalTimeZone to find the time zone for a given locationin this case, the new $GeoLocation:

Reset $GeoLocation and $TimeZone to your local values:

Introduced in 2008
Updated in 2014