({{, (RefLink[GeoEntities, paclet:ref/GeoEntities])[reg,enttype] 
gives a list of the geographic entities of type enttype contained in the extended region reg.}})

OpenersNotesSection(Spacer1)Details and Options

In (RefLink[GeoEntities, paclet:ref/GeoEntities])[reg,enttype], reg can be specified as either an (RefLink[Entity, paclet:ref/Entity]) object or an extended (RefLink[GeoGraphics, paclet:ref/GeoGraphics]) primitive.

In (RefLink[GeoEntities, paclet:ref/GeoEntities])[reg,enttype], enttype can be specified as an (RefLink[Entity, paclet:ref/Entity]) object, such as (RefLink[Entity, paclet:ref/Entity])["Country"], or as a string, such as "City".

Valid forms of enttype include:

OpenersPrimaryExamplesSection(Spacer1)Examples  (14)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

The mountains in Israel:

GeoEntities[(Entity["Israel", Entity["Country","Israel"], "Entity[\"Country\", \"Israel\"]", "country"]),"Mountain"]

Famous buildings in the city of Dallas, Texas:

GeoEntities[(Entity["Dallas", Entity["City",{"Dallas","Texas","UnitedStates"}], "Entity[\"City\", {\"Dallas\", \"Texas\", \"UnitedStates\"}]", "city"]),"Building"]

Cities in a particular coordinate rectangle:

GeoEntities[Rectangle[GeoPosition[{38,-92}],GeoPosition[{39,-92.5}]],"City"]

OpenersExampleSection1(Spacer1)Scope  (7)

All entities in ZIP code 61801:

GeoEntities[(Entity["61801", Entity["ZIPCode","61801"], "Entity[\"ZIPCode\", \"61801\"]", "ZIP code"]),All]

Find mountains and bridges in Vermont:

GeoEntities[(Entity["Vermont, United States", Entity["AdministrativeDivision",{"Vermont","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Vermont\", \"UnitedStates\"}]", "administrative division"]),"Mountain"|"Bridge"]

Administrative divisions other than Manhattan that intersect New York City:

GeoEntities[(Entity["New York City", Entity["City",{"NewYork","NewYork","UnitedStates"}], "Entity[\"City\", {\"NewYork\", \"NewYork\", \"UnitedStates\"}]", "city"]),Except[(Entity["New York County (Manhattan), New York, United States", Entity["AdministrativeDivision",{"NewYork","NewYork","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"NewYork\", \"NewYork\", \"UnitedStates\"}]", "administrative division"]),"AdministrativeDivision"]]

Bridges in several cities:

GeoEntities[GeoGroup[{(Entity["New York City", Entity["City",{"NewYork","NewYork","UnitedStates"}], "Entity[\"City\", {\"NewYork\", \"NewYork\", \"UnitedStates\"}]", "city"]),(Entity["Chicago", Entity["City",{"Chicago","Illinois","UnitedStates"}], "Entity[\"City\", {\"Chicago\", \"Illinois\", \"UnitedStates\"}]", "city"]),(Entity["Los Angeles", Entity["City",{"LosAngeles","California","UnitedStates"}], "Entity[\"City\", {\"LosAngeles\", \"California\", \"UnitedStates\"}]", "city"])}],"Bridge"]

Find the countries a given polygon partially overlaps:

poly=Polygon[GeoPosition[{{40.42,-3.71},{48.86,2.34},{52.52,13.38}}]];

countries=GeoEntities[poly,"Country"]

Draw a map showing the polygon and countries:

GeoGraphics[{Tooltip[Polygon[#],CanonicalName[#]]&/@countries,Red,poly}]

The United States extends into a part of the Pacific Ocean:

GeoEntities[Rectangle[GeoPosition[{15,-170}],GeoPosition[{25,-150}]],"Country"]

But its principal land mass does not:

GeoEntities[ Rectangle[GeoPosition[{15,-170}],GeoPosition[{25,-150}]],GeoVariant["Country","PrincpalArea"]]

The portion of the United States in question is Hawaii:

GeoGraphics[{{FaceForm[],EdgeForm[Black],Rectangle[GeoPosition[{15,-170}],GeoPosition[{25,-150}]]}, {GeoStyling[Magenta],Polygon@(Entity["Hawaii, United States", Entity["AdministrativeDivision",{"Hawaii","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Hawaii\", \"UnitedStates\"}]", "administrative division"])}}]

Determine the G7 countries inside the specified latitude/longitude region:

GeoEntities[GeoBoundsRegion[{{35,60},{0,25}}],(EntityClass["Group of 7", EntityClass["Country","GroupOf7"], "EntityClass[\"Country\", \"GroupOf7\"]", "countries"])]

OpenersExampleSection2(Spacer1)Options  (1)

OpenersExampleSubsection0(Spacer1)"FullyContained"  (1)

By default, an entity is considered to be inside the region if the two intersect:

GeoEntities[(Entity["Lake Ontario", Entity["Lake","LakeOntario"], "Entity[\"Lake\", \"LakeOntario\"]", "lake"]),"Country"]

The option "FullyContained"->(RefLink[True, paclet:ref/True]) excludes entities that cover only a portion of the location:

GeoEntities[(Entity[Lake Ontario, Entity["Lake","LakeOntario"], "Entity[\"Lake\", \"LakeOntario\"]", "lake"]),"Country","FullyContained"->True]

OpenersExampleSection3(Spacer1)Properties & Relations  (3)

(RefLink[GeoEntities, paclet:ref/GeoEntities]) always returns a list:

GeoEntities[(Entity["Illinois, United States", Entity["AdministrativeDivision",{"Illinois","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Illinois\", \"UnitedStates\"}]", "administrative division"]), "Country"]

The list may be empty:

GeoEntities[(Entity["Illinois, United States", Entity["AdministrativeDivision",{"Illinois","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Illinois\", \"UnitedStates\"}]", "administrative division"]), "AdministrativeDivision3"]

For extended locations loc, (RefLink[GeoEntities, paclet:ref/GeoEntities])[loc,enttype] is essentially equivalent to (RefLink[GeoIdentify, paclet:ref/GeoIdentify])[enttype,loc]:

GeoIdentify["AdministrativeDivision2",(Entity["Delaware, United States", Entity["AdministrativeDivision",{"Delaware","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Delaware\", \"UnitedStates\"}]", "administrative division"])]===GeoEntities[(Entity["Delaware, United States", Entity["AdministrativeDivision",{"Delaware","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Delaware\", \"UnitedStates\"}]", "administrative division"]),"AdministrativeDivision2"]

(RefLink[GeoEntities, paclet:ref/GeoEntities]) only includes entities that overlap the region:

GeoEntities[(Entity["Delaware, United States", Entity["AdministrativeDivision",{"Delaware","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Delaware\", \"UnitedStates\"}]", "administrative division"]),"AdministrativeDivision2"]

(RefLink[GeoNearest, paclet:ref/GeoNearest]) includes all entities, if any, at zero distance from an extended region:

GeoNearest["AdministrativeDivision2",(Entity["Delaware, United States", Entity["AdministrativeDivision",{"Delaware","UnitedStates"}], "Entity[\"AdministrativeDivision\", {\"Delaware\", \"UnitedStates\"}]", "administrative division"])]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[GeoIdentify, paclet:ref/GeoIdentify])  ▪  (RefLink[GeoWithinQ, paclet:ref/GeoWithinQ])  ▪  (RefLink[GeoNearest, paclet:ref/GeoNearest])  ▪  (RefLink[GeoGroup, paclet:ref/GeoGroup])  ▪  (RefLink[GeoVariant, paclet:ref/GeoVariant])  ▪  (RefLink[CountryData, paclet:ref/CountryData])  ▪  (RefLink[AdministrativeDivisionData, paclet:ref/AdministrativeDivisionData])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Geographic Data & Entities, paclet:guide/GeographicData])}, {▪(RefLinkPlain[Geodesy, paclet:guide/Geodesy])}, {▪(RefLinkPlain[WDF (Wolfram Data Framework), paclet:guide/WDFWolframDataFramework])}})}})