GeoGroup[geoobjects]
represents a list of geographic objects to be treated as a single object for certain operations.
GeoGroup
GeoGroup[geoobjects]
represents a list of geographic objects to be treated as a single object for certain operations.
Details
- Geographic functions that can be used with GeoGroup include GeoDistance and GeoNearest.
- geoobjects is a list that may contain geo position specifications; Entity objects with domains such as "Country", "City", and "AdministrativeDivision"; entities that have natural geographic positions; EntityClass objects of these types; or other geo groups.
- GeoGroup allows distance computations to be performed efficiently.
Examples
open all close allBasic Examples (2)
Display a grid of country-country distances between pairs of countries:
Grid[{#, GeoDistance@@#}& /@ Subsets[{Entity["Country", "UnitedKingdom"], Entity["Country", "Spain"], Entity["Country", "Germany"]}, {2}], Dividers -> All, Alignment -> Left]Find the (closest) distance between the United Kingdom and two other countries:
GeoDistance[Entity["Country", "UnitedKingdom"], GeoGroup[{Entity["Country", "Spain"], Entity["Country", "Germany"]}]]Make a list of large cities in Germany:
cities = CityData[{Large, "Germany"}]Efficiently compute the distance from Paris to the closest large German city:
GeoDistance[Entity["City", {"Paris", "IleDeFrance", "France"}], GeoGroup[cities]]Find the names of the closest large German cities:
GeoNearest[cities, Entity["City", {"Paris", "IleDeFrance", "France"}], 5]Compare with the results obtained by computing each distance separately:
TakeSmallestBy[Transpose[{GeoDistance[Entity["City", {"Paris", "IleDeFrance", "France"}], cities], cities}], First, 5]Properties & Relations (1)
The default behavior of the geo style "Image" is to apply the image as a texture to individual polygons:
euros = [image];
eurozone = EntityList[EntityClass["Country", "Eurozone"]]Show the result of using the "Image" style on the eurozone countries:
GeoGraphics[{GeoStyling[{"Image", euros}], Polygon /@ eurozone}]GeoGroup can be used to apply the "Image" geo style to a geographic group as a whole:
GeoGraphics[{GeoStyling[{"Image", euros}], GeoGroup[Polygon /@ eurozone]}]Tech Notes
Related Guides
History
Text
Wolfram Research (2014), GeoGroup, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoGroup.html.
CMS
Wolfram Language. 2014. "GeoGroup." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GeoGroup.html.
APA
Wolfram Language. (2014). GeoGroup. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoGroup.html
BibTeX
@misc{reference.wolfram_2026_geogroup, author="Wolfram Research", title="{GeoGroup}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/GeoGroup.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_geogroup, organization={Wolfram Research}, title={GeoGroup}, year={2014}, url={https://reference.wolfram.com/language/ref/GeoGroup.html}, note=[Accessed: 12-June-2026]}