$GeoLocation

$GeoLocation

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

Details

Examples

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:

Wolfram Research (2008), $GeoLocation, Wolfram Language function, https://reference.wolfram.com/language/ref/$GeoLocation.html (updated 2014).

Text

Wolfram Research (2008), $GeoLocation, Wolfram Language function, https://reference.wolfram.com/language/ref/$GeoLocation.html (updated 2014).

BibTeX

@misc{reference.wolfram_2020_$geolocation, author="Wolfram Research", title="{$GeoLocation}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/$GeoLocation.html}", note=[Accessed: 01-December-2020 ]}

BibLaTeX

@online{reference.wolfram_2020_$geolocation, organization={Wolfram Research}, title={$GeoLocation}, year={2014}, url={https://reference.wolfram.com/language/ref/$GeoLocation.html}, note=[Accessed: 01-December-2020 ]}

CMS

Wolfram Language. 2008. "$GeoLocation." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/$GeoLocation.html.

APA

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