The Wolfram Language has extensive built-in knowledge of geography. For example, it knows where New York City is, and it can compute how far it is from there to Los Angeles.

GeoDistance[LinguisticAssistant,LinguisticAssistant]

You can also plot locations on a map, using GeoListPlot.

GeoListPlot[{LinguisticAssistant,LinguisticAssistant}]

GeoListPlot[{LinguisticAssistant,LinguisticAssistant,LinguisticAssistant}]

You can do things at a much smaller scale too.

GeoListPlot[{LinguisticAssistant,LinguisticAssistant}]

GeoListPlot is the analog for geography of ListPlot. GeoGraphics is the analog of Graphics.

GeoGraphics[LinguisticAssistant]

GeoPath represents a path on the surface of the Earth.

GeoGraphics[GeoPath[{LinguisticAssistant,LinguisticAssistant}]]

GeoGraphics[Style[GeoPath[{LinguisticAssistant,LinguisticAssistant}],Thick,Red]]

GeoDisk is the analog of Disk; you specify its center and its radius.

GeoGraphics[GeoDisk[LinguisticAssistant,LinguisticAssistant]]

Table[GeoGraphics[GeoDisk[LinguisticAssistant,(Quantity[0.1, "mi", miles, "Miles"])*10^n]],{n,0,4}]

GeoPosition gives a position on the Earth. The numbers it contains are longitude and latitude—the standard coordinates on the surface of the Earth.

GeoPosition[LinguisticAssistant]

GeoGraphics[GeoDisk[GeoPosition[{0,0}],LinguisticAssistant]]

Notice that the disk isn’t quite circular. That’s because we have to use a projection to draw the surface of the Earth on a flat map. It’s one of the many subtleties in doing geocomputation.

GeoNearest finds what’s nearest to a given place on the Earth. You tell it what type of thing to look for, and how many you want it to find.

GeoNearest["Country",GeoPosition[{0,0}],5]

GeoNearest["City",GeoPosition[{0,0}],5]

It’s often nice to know your own geo position. So long as your computer, phone, etc. knows, Here will give you that.

Here

You can do computations with Here.

GeoDistance[Here,LinguisticAssistant]

GeoNearest["Volcano",Here,5]

GeoListPlot[GeoNearest["Volcano",Here,30]]

Find the distance from New York to London. »

Divide the distance from New York to London by the distance from New York to San Francisco. »

Find the distance from Sydney to Moscow in kilometers. »

Generate a map of the United States. »

Plot on a map Brazil, Russia, India and China. »

Plot on a map the path from New York City to Beijing. »

Plot a disk centered on the Great Pyramid, with radius 10 miles. »

Plot a disk centered on New York with a radius large enough to just reach San Francisco. »

Find the nearest 5 countries to the North Pole (GeoPosition["NorthPole"]). »

Find the flags of the 3 countries nearest to latitude 45°, longitude 0°. »

Plot the 25 volcanoes closest to Rome. »

Find the difference in latitude between New York and Los Angeles. »

Plot on a map the countries in NATO. »

Plot on a map a thick red line from Moscow to Beijing and a thick blue line from Washington, DC to London. »

Find the distance from 0 latitude, 0 longitude to the Eiffel Tower. »

Plot a disk styled red of radius 100 miles centered on Los Angeles. »

Make a list of plots showing disks with radii 1, 2 and 3 miles around the Empire State Building. »

Find the 5 countries nearest to New York City. »

Find the nearest ocean to Chicago. »

Can I get different projections for maps?

Yes. Just use the GeoProjection option. There are more than 300 built-in projections to choose from. The default projection used in any particular case depends on the scale and location of the map.

How detailed are the maps in the Wolfram Language?

They go down to the level of individual streets. Most streets in the world are included.

How does the Wolfram Language find my geo position?

It uses the function FindGeoLocation. On a mobile device, this will normally ask for your GPS position. On a computer, it’ll normally try to deduce your location from your internet address—this won’t always work correctly. You can always explicitly set your geo location by assigning a value to $GeoLocation.

How can I specify the range of a map?

Use the option GeoRange->distance (e.g. GeoRange->LinguisticAssistant) or GeoRange->place (e.g. GeoRange->LinguisticAssistant), as discussed in Section 20.

Can the Wolfram Language compute driving directions?

Yes. Use TravelDirections. GeoDistance gives the direct shortest path; TravelDistance gives the path following roads, etc. TravelTime gives estimated travel time.

Is the Wolfram Language restricted to maps of the Earth?

No. For example, the moon and Mars also work. Use the option GeoModel->"Moon", etc.

Tech Notes