All pictures on this page are contributions by Dr. Bernd Frassek.

All meridians are great circles. Latitude circles other than the equator (for example circle B in the picture) are not great circles, for example because they are smaller than the equator, which is a great circle.
A great circle provides the shortest route if you travel at a fixed speed compared to the ground, and also (approximately) if your speed, though not fixed, is always much smaller than the rotation speed of the sphere at its equator. This does not hold, for example, for things that orbit around the Earth outside the atmosphere.
Suppose that you want to draw the shortest route on a map between a city P₁ and a far-away other city P₂, and you know the geographical longitude and latitude of both cities. Then, you can calculate the coordinates of points on that route as follows:
l1 and b1, and those of the
second city l2 and b2.
x1, y1, z1 (see figure
2):
(Eq. 1) x1 = cos l1 cos b1
(Eq. 2) y1 = sin l1 cos b1
(Eq. 3) z1 = sin b1
and similarly for the second city P₂.

ψ (psi) between the two cities, as seen from the center
of the Earth (see Figure 3):
(Eq. 4) ψ = arccos(x1 x2 + y1 y2 + z1 z2)
Calculate the coordinates of the point P₃ on the great circle that is 90° from the first city P₁ in the direction of the second city P₂ (see Figure 3):
(Eq. 5) x3 = (x2 − x1 cos ψ)/sin ψ
and similarly with y or z in stead of
x.
The cartesian coordinates of the points of the great circle are then,
as a function of the angular distance φ (phi) from the
first city:
(Eq. 6) x = x1 cos φ + x3 sin φ
and similarly with y or z in stead of
x. If φ = 0, then you are in the first
city. If φ = ψ, then you are in the second city.
You can now translate the cartesian coordinates x,
y, z to polar coordinates
l, b:
(Eq. 7) b = arcsin(z)
(Eq. 8) l = arctan(y,x)
The arctan(y,x) with two arguments means that you must
make sure that the answer is in the right quadrant. The correct
answer is either arctan(y/x), or arctan(y/x) +
180°, and (in this case) you must select the solution that has
x for its cosine and y for its sine
(with the correct signs).
Many computer languages and computer calculation programs have a two-argument version of the arc tangent function, and many calculators have a translation function from cartesian to polar coordinates that you can use for this.

π/180 = 0.017453292, so on Earth this is 111.317 km per
degree. We find:
l1 = 4.9°; b1 = 52.37°; l2 = −122.42°; b2 =
37.77°x1 = 0.6083285; y1 = 0.05215215; z1 = 0.7919701; x2 =
−0.423791; y2 = −0.6672729; z2 = 0.6124933ψ = 78.90289°, so San Francisco is 78.90289
* 111.317 = 8783 km from Amsterdam.x3 = −0.5511833; y3 = −0.6902162; z3 =
0.4688268. This corresponds to b3 = 27.95817°; l3 =
−128.6097°, which is a location in the Eastern Pacific Ocean,
to the West of Mexico.1000⁄111.317 = 8.98335
degrees, so φ = 8.98335°. Then x = 0.5148008; y
= −0.05626304; z = 0.8554617.b = 58.81077°; l = −6.237153°. This is a location
just to the North of Scotland.There is an alternative for formula 6, which does not require the calculation of the position of point 3:
(Eq. 9) x = (x1 sin(ψ − φ) + x2 sin φ)/sin ψ
and similarly with y or z instead of
x. However, point 3 is necessary if you want to know
other things about the great circle, as you'll see below.
Suppose you want to know where you go if you start from a particular town in a particular direction and keep going straight. We assume that you travel at a speed that is much smaller than the rotation speed of the Earth along the equator. You'll then travel along a great circle. You can calculate the coordinates of points along the route as follows:
l1 and b1, and the direction in which
you start γ, measured from south to west (so south =
0°, west = 90°, north = 180°, east = 270°).x1, y1, z1 according to
formulas 1ff.xzuid, yzuid,
zzuid of the corresponding south point with lsouth
= l1; bsouth = b1 − 90° if b1 is positive
(i.e., in the Northern hemisphere), and lsouth = l1 + 180°;
bsouth = −90° − b1 if b1 is negative (i.e.,
in the southern hemisphere).xwest, ywest,
zwest of the corresponding west point with lwest =
l1 − 90°; bwest = 0.Calculate the cartesian coordinates x3, y3, z3 of
the great circle point at 90° from the city:
(Eq. 10) x3 = xsouth cos γ + xwest sin γ
and similarly with y or z instead of
x.
l1 = 4.9°; b1 = 52.37°; γ = 270°x1 = 0.6083285; y1 = 0.05215215; z1 =
0.7919701;xsouth = 0.7890756; ysouth = 0.06764765; zsouth =
−0.6105599xwest = 0.08541692; ywest = −0.9963453; zwest =
0x3 = −0.08541692; y3 = 0.9963453; z3 =
0.7919701, so in this case each cartesian coordinate of point
3 is the opposite of the corresponding coordinate of the west point,
which was to be expected because we start out going straight to the
east.1000 km corresponds to 8.98335°, dus φ = 8.98335°.
With that, we find x = 0.587529; y = 0.2070892; z =
0.7822556, en dan b = 51.46756°; l = 19.41627°.
This is a location in the middle of Poland.

Calculate the angular distance of the first city P₁ from the first special (northernmost or southernmost) point:
(Eq. 11) φ1 = arctan(z3/z1)
The angular distance of the second special point is 180° greater (or less, that is the same thing on a circle):
(Eq. 12) φ2 = φ1 + 180°
You can then use formula 6 to calculate the corresponding cartesian coordinates, and then formula 7ff to calculate the polar coordinates. It is not necessary to calculate the coordinates of the second special point, because it is at the exact opposite side of the planet from the first one, so its cartesian coordinates and its latitude are equal to those of the first point, times −1, and its longitude is 180° around the planet from the first special point.
φ1 = 30.62449°; φ2 =
210.62449°. The corresponding cartesian coordinates are
x = −0.2427036; y = 0.3067243; z = −0.9203343 for
φ1, and x = 0.2427036; y = −0.3067243; z =
0.9203343 for φ2. The corresponding polar
coordinates are b = 66.975°; l = −51.64627° for
φ1 and b = −66.975°; l = 128.3537° for
φ2.Every great circle except for the equator intersects the equator in two points, called E₁ and E₂ in Figure 5. The longitudes of those points are 90° to the east and west of the northernmost and southernmost points of the great circle, of which the calculation is explained above.

It is impossible to make a map of the world on which all great circles run straight, but it is possible to make a map on which some great circles run straight, for example all great circles through a single point. In Figure 6, all great circles through the North Pole and South Pole run straight: Those are the meridians. The equator is a great circle and it, too, runs straight through that map.
http://www.astro.uu.nl/~strous/AA/en/reken/grootcirkel.html;
Last updated: 2006-12-27