Wolfram Geography | Things to Try

Make edits and run any piece of code by clicking inside the code and pressing
+
.
Analyze, Compute and Visualize Geographic Data. Make geography computable with curated geographic data, precise computation and automated visualization. For beginners to experts, easily convert your data into insightful and great-looking maps.

Generate a Wide Variety of Maps

Choose the background you want to use in a geographic map:
Run
In[]:=
GeoGraphics["World",GeoBackground->"Satellite"]
Choose the map projection:
Run
In[]:=
GeoGraphics["World",GeoBackground->"ReliefMap",GeoProjection->"Mollweide"]

Zoom In for Higher Detail

Specify a geographic region, such as a country:
Run
In[]:=
GeoGraphics
Italy
COUNTRY

Specify a city:
Run
In[]:=
GeoGraphics
Rome
CITY

Specify a particular range:
Run
In[]:=
GeoGraphics
Colosseum
BUILDING
,GeoRange->
180
m


Represent Data on a Map

Plot geographic regions weighted by data, such as GDP:
Run
In[]:=
GeoRegionValuePlot
Europe
COUNTRIES
->"GDP"
Define your own classes of entities for data retrieval—in this case, the 50 largest cities in the US:
Run
In[]:=
cityclass=EntityClass"City",
country
->
United States
COUNTRY
,
city population
->TakeLargest[50];
Visualize data from your implicitly defined classes:
Run
In[]:=
GeoBubbleChart[cityclass->"Population"]

Create Custom Geographics

Use markers and polygons to create customized images:
Run
In[]:=
GeoGraphicsGeoMarker
Paris
CITY
,Polygon
France
COUNTRY

Alter the appearance of graphics and shapes:
Run
In[]:=
GeoGraphicsEdgeForm[Black],Red,Polygon
Italy
COUNTRY

Specify custom markers:
Run
In[]:=
GeoGraphics​​GeoMarker
Narita International Airport
AIRPORT
,
airport
ICON
,"Color"->Red,​​GeoMarker
Osaka International Airport
AIRPORT
,
airport
ICON
,"Color"->Blue,​​Polygon
Japan
COUNTRY
​​
Show the day-night terminator during the next eclipse:
Run
In[]:=
nexteclipse=SolarEclipse[];​​GeoGraphics[{Black,NightHemisphere[nexteclipse],Red,DayNightTerminator[nexteclipse]},​​GeoRange"World"]

Perform Geo Computations

Get your current position in the world:
Run
In[]:=
Here
Compute distances between locations:
Run
In[]:=
GeoDistanceHere,
Paris
CITY

Compute the area of geographic regions:
Run
In[]:=
GeoArea
France
COUNTRY


Obtain and Visualize Travel Directions

Get travel directions through a list of locations:
Run
In[]:=
directions=​​TravelDirections
Madrid
CITY
,
Paris
CITY
,
Berlin
CITY
,
Warsaw
CITY
,TravelMethod->"Driving"
Visualize a route:
Run
In[]:=
GeoGraphics[{Red,Thick,directions["TravelPath"]}]
Estimate the distance covered by a route:
Run
In[]:=
directions["TravelDistance",UnitSystem->"Metric"]
Estimate the time needed to travel a route:
Run
In[]:=
directions["TravelTime"]

Retrieve and Use Geophysical Data

Retrieve elevation data for a specified location:
Run
In[]:=
elevationdata=GeoElevationData
Mount St. Helens
MOUNTAIN
,GeoRange->
4
km

Visualize the data in 3D:
Run
In[]:=
ListPlot3Delevationdata,
Options settings

Create a relief map of an area:
Run
In[]:=
ReliefPlotelevationdata,
Options settings

Estimate the visible region from a given location and elevation:
Run
In[]:=
GeoGraphicsGeoVisibleRegion
Tokyo Skytree
BUILDING
[{"Latitude","Longitude","Height"}]
Use geomagnetic modeling to plot paths navigated by following a compass toward magnetic north:
Run
In[]:=
GeoStreamPlotGeomagneticModelData
Canada
COUNTRY
,GeoVector,GeoGridLines->Automatic

Compute Geo Statistics

Retrieve the positions of earthquakes in Alaska with magnitudes greater than 6 between the years 1950 and 2022:
Run
In[]:=
alaskaQuakes=​​EarthquakeData
Alaska, United States
ADMINISTRATIVE DIVISION
,{6,10},
Year: 1950
,
Year: 2022
,"Position"//Quiet
Create a smoothed spatial histogram of these events:
Run
In[]:=
GeoSmoothHistogramalaskaQuakes,GeoRange->
Alaska, United States
ADMINISTRATIVE DIVISION

Show the histogram and earthquake locations together:
Run
In[]:=
Show​​GeoSmoothHistogramalaskaQuakes,GeoRange->
Alaska, United States
ADMINISTRATIVE DIVISION
,​​GeoListPlotalaskaQuakes,GeoRange->
Alaska, United States
ADMINISTRATIVE DIVISION
​​

Predict Spatial Patterns

Retrieve spatial data for ozone measurements over the US:
Run
In[]:=
spatialdata=ResourceData["Sample Data: US Ozone 2021","Data"];
Plotting the data reveals gaps in the original measurement set:
Run
In[]:=
PointValuePlot[spatialdata,ColorFunction->"Rainbow"]
Create a predictor function based on the spatial data:
Run

Create Maps of Celestial Bodies