GeoIdentify

GeoIdentify[enttype]

identifies the geographic entities of the type enttype in which the current geo location is contained.

GeoIdentify[enttype,loc]

identifies the entities in which the location loc is contained.

GeoIdentify[]

identifies the entities of any type in which the current geo location is contained.

Details and Options

  • GeoIdentify returns a list of Entity objects representing extended geographic regions.
  • In GeoIdentify[enttype,loc], enttype can be specified as an Entity object, such as Entity["Country"], or as a string, such as "City".
  • Valid forms for enttype include:
  • "Country"country, territory, etc.
    "City"city
    "AdministrativeDivision"administrative division of any level
    "AdministrativeDivision1"first-level administrative division
    "AdministrativeDivision2"second-level administrative division
    "AdministrativeDivision3"third-level administrative division
    "Ocean"ocean
    "USCounty"US county
    "USState"US state
    "ZIPCode"US ZIP code
    GeoVariant[enttype,variant]entities using variant regions
    EntityClass["type","class"]individual members of class
    enttype1|enttype2|any of the enttypei
    Allany possible type
  • The location loc can be specified as a GeoPosition, an Entity object, or a GeoGraphics primitive.
  • In GeoIdentify[] and GeoIdentify[regtype], the location is taken to be the current setting for $GeoLocation.

Examples

open allclose all

Basic Examples  (4)

The country of your current location:

In[1]:=
Click for copyable input
Out[1]=

The center of the Atlantic Ocean is not in any country:

In[1]:=
Click for copyable input
Out[1]=

It is basically only contained in the ocean itself:

In[2]:=
Click for copyable input
Out[2]=

The state and ZIP code of GeoPosition[{42.11`,-89.24`}]:

In[1]:=
Click for copyable input
Out[1]=

All entities containing your current geo location:

In[1]:=
Click for copyable input
Out[1]=

Scope  (6)

Options  (1)

Applications  (1)

Properties & Relations  (3)

See Also

GeoWithinQ  GeoNearest  GeoEntities  FindGeoLocation  GeoBoundingBox  GeoBounds  Here  $GeoLocation  $GeoLocationCountry  WikipediaData

Introduced in 2014
(10.0)