$GeoLocationCity

$GeoLocationCity

gives the city entity for the current setting for $GeoLocation.

Examples

open allclose all

Basic Examples  (1)

Find your geodetic coordinates:

Show the city for those coordinates:

Draw a map:

Applications  (2)

Find the distance from your current city to the border of the country, returned as a negative value:

Find the next level of administrative division corresponding to the city of your current location:

Find more data about the city:

Properties & Relations  (3)

$GeoLocationCity gives the nearest city to your current $GeoLocation:

$GeoLocationCountry gives the nearest country to your current $GeoLocation:

$GeoLocationCity performs a GeoNearest call to find the nearest city to your current location:

Block temporarily the value of $GeoLocation to simulate that you are located at that position:

$GeoLocationCity is automatically set, even if $GeoLocation is at sea:

Reset your current $GeoLocation:

Possible Issues  (1)

$GeoLocationCity cannot be set independently of $GeoLocation:

Instead, set $GeoLocation to a location included in that city:

Then $GeoLocationCity will be automatically set:

Restore your current $GeoLocation:

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

Text

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

CMS

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

APA

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

BibTeX

@misc{reference.wolfram_2023_$geolocationcity, author="Wolfram Research", title="{$GeoLocationCity}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/$GeoLocationCity.html}", note=[Accessed: 19-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_$geolocationcity, organization={Wolfram Research}, title={$GeoLocationCity}, year={2014}, url={https://reference.wolfram.com/language/ref/$GeoLocationCity.html}, note=[Accessed: 19-April-2024 ]}