GeoPath

GeoPath[{loc1,loc2},pathtype]
is a GeoGraphics primitive that represents a path of type pathtype between locations and .

GeoPath[{loc1,loc2,},pathtype]
represents a path formed by joining paths of type pathtype between consecutive locations .

GeoPath[{loc1,d,α},pathtype]
represents a path moving from location a distance d with initial bearing α.

GeoPath[{{loc11,loc12,},{loc21,},},pathtype]
represents a disjoint collection of paths of type pathtype.

Details and OptionsDetails and Options

  • The locations can be specified as latitude and longitude coordinates in degrees, as GeoPosition[{lat,lon}], or as named entities Entity[].
  • Entities will be interpreted as the position determined by their property.
  • GeoPath supports the geographic path types:
  • "Geodesic"geodesic path between points
    "Rhumb","RhumbLine","Loxodrome"path of constant bearing between points
    "GreatEllipse","GreatCircle"path on a plane through Earth's center
  • GeoPath[{loc1,}] represents a path of type .
  • For multiple locations in a path, each pair of consecutive locations is joined by a geodesic, but the complete path will not be a geodesic in general. The same can be said of other path types.
  • A combination of multiple steps of distances with respective initial bearings can be represented using GeoPath[{loc1,GeoDisplacement[{d1,α1}],GeoDisplacement[{d2,α2}],},pathtype].
  • Long paths will generically not appear straight in the map.
  • Special named geo paths include:
  • GeoPath[{"Parallel",lat}]parallel of latitude lat, extending 360° in longitude
    GeoPath[{"Meridian",lon}]meridian of longitude lon, extending 180° in latitude
    GeoPath[{"Parallel",lat,{lon1,lon2}}]parallel of latitude lat, from longitude to
    GeoPath[{"Meridian",lon,{lat1,lat2}}]meridian of longitude lon, from latitude to
    GeoPath["Equator"]parallel of latitude 0°
    GeoPath["NorthernTropic"]parallel of latitude 23.4374°
    GeoPath["SouthernTropic"]parallel of latitude -23.4373°
    GeoPath["ArcticCircle"]parallel of latitude 66.5622°
    GeoPath["AntarcticCircle"]parallel of latitude -66.5622°
    GeoPath["GreenwichMeridian"]meridian of longitude 0°
    GeoPath["DateLineMeridian"]meridian of longitude 180°
    GeoPath["DateLine"]international date line
  • Line thickness can be specified using Thickness or AbsoluteThickness, as well as Thick and Thin.
  • Line dashing can be specified using Dashing or AbsoluteDashing, as well as Dashed, Dotted, etc.
  • Line shading or coloring can be specified using CMYKColor, GrayLevel, Hue, Opacity, or RGBColor.
  • The option VertexColors->{c1,c2,} can be used to specify that the color of the line should interpolate between colors specified for each point.
  • Joining of line segments can be specified using JoinForm.
  • Line caps can be specified using CapForm.

ExamplesExamplesopen allclose all

Basic Examples  (5)Basic Examples  (5)

Shortest path (geodesic) between two locations:

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

Line of constant rhumb (loxodrome) between two locations:

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

Move 500 kilometers along a geodesic from New York:

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

Draw a curve of constant bearing between two cities:

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

Draw the shortest route between several cities:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)