Wolfram 语言与系统 10.0 (2014)|旧版文档

此为更早版本的 Wolfram 语言文档查看最新文档(版本11.2)

GeoWithinQ

GeoWithinQ[reg]
returns True if the current geo location is within the region reg, and False otherwise.

GeoWithinQ[reg,loc]
returns True if the location loc is contained within the region reg, and False otherwise.

更多信息和选项更多信息和选项

  • In GeoWithinQ[reg,loc], reg can be specified as either an Entity object or an extended GeoGraphics primitive. The location loc can additionally be specified as a GeoPosition or related point-like location object.
  • With the option setting "FullyContained"->True, GeoWithinQ[reg,loc] will return True only if loc is completely contained in reg.

范例范例打开所有单元关闭所有单元

基本范例  (2)基本范例  (2)

New York City is in the United States:

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

But it is not in the state of Florida:

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

Are you currently in Champaign, Illinois?:

In[1]:=
Click for copyable input
Out[1]=
2014年引入
(10.0)