"Location" (interpreter type)

Natural-language name or coordinates of a geographic location.

DetailsDetails

  • "Location" can be used in Interpreter and related constructs, including deployed smart form fields.
  • Use of "Location" requires connectivity to the Wolfram Cloud.

Allowed FormsAllowed Forms

  • Indiaa named country
    Parisa named city
    lake Tanganyikaa named geographical location
    52°48'00"N 59°2'19"Egeographic coordinates
    lat 35 long 55geographic coordinates

Restriction SpecificationsRestriction Specifications

  • Restricted["Location",{{choice1,}}]one among choices
    Restricted["Location",reg]a location in the region reg, given as an Entity
    Restricted["Location",reg,datum]a location in the region reg, with position referring to datum

InterpretationInterpretation

  • "Location" yields a GeoPosition object. For extended entities, it uses when possible the position of the geographic center of the entity.

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Interpret named locations:

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

Interpret geographic coordinates:

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

Restrict to US locations:

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

Interpret locations of any kind:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=

Change the datum for the resulting GeoPosition:

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

Geographic restrictions apply to the center coordinates in case of extended entities:

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