geoprimsField-grade geospatial math

Where two courses cross

The point where two courses from two positions meet, on geodesics or rhumb lines, and how far each has to run to get there.

Planning and education aid. Not for primary navigation. Full disclaimer

145,044.023m

The courses cross 145,044.023 m along the first and 60,092.661 m along the second.

Run from the second position
Crossing latitude
Crossing longitude
Provenance
Computed by
navigation.route.course-intersection 1.0.1, core 0.1.0
Model
Geodesic: Newton's method on the two distances, x1(s1) = x2(s2), using each geodesic's direction at its current end (Karney 2013 direct and inverse), started from the great-circle crossing on the mean sphere. Two courses cross twice, about half the world apart; each run is read within half a circumference either way, and of the two crossings the one behind fewer of the positions is reported, then the nearer. Rhumb: both are straight lines in Mercator coordinates (longitude, isometric latitude) and meet exactly
Accuracy
The geodesic crossing closes to under a nanometer; the rhumb crossing is exact to floating point
Notes
None
Cites
Karney, C. F. F., Journal of Geodesy, Algorithms for geodesics

Something look off?

Your values

Showing an example. Change anything.
More options 3
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: Geodesic: Newton's method on the two distances, x1(s1) = x2(s2), using each geodesic's direction at its current end (Karney 2013 direct and inverse), started from the great-circle crossing on the mean sphere. Two courses cross twice, about half the world apart; each run is read within half a circumference either way, and of the two crossings the one behind fewer of the positions is reported, then the nearer. Rhumb: both are straight lines in Mercator coordinates (longitude, isometric latitude) and meet exactly

Show your work

  1. Run along the second course

    the distance that closes the gap between the two courses

    course 135.0° from 43.6600°, -70.2600° = 60,092.661 m

  2. Run along the first course

    the matching distance on the first course

    course 45.0° from 42.3600°, -71.0000° = 145,044.023 m

The same steps an agent gets from the MCP server with explain: true.

Accuracy: The geodesic crossing closes to under a nanometer; the rhumb crossing is exact to floating point

When to use this: Use this to find where two courses from two known positions meet: a two-bearing fix from two stations, where an aircraft's track crosses a ship's, where a survey line run on one bearing meets another, or where two search legs overlap. It gives the crossing point and how far each course must be run to reach it, negative when the crossing lies behind a position, on geodesics or on rhumb lines.

Limitations: Two courses cross twice, about half the world apart, and this reports one of those two: the one behind fewer of the positions, then the nearer, each run read within half a circumference either way. So when the near crossing lies behind one position, it is reported with a negative run rather than replaced by the far one on the other side of the Earth; for a crossing half the world away along a course, ahead and behind name the same place. Courses along the same line, or side by side, have no crossing and are refused. Geodesics and rhumb lines cross in different places, so choose the kind the courses are actually flown on.

Worked example: Two courses across the Gulf of Maine. Source: Worked on the ellipsoid: both runs checked by carrying each course its distance with the geodesic direct problem. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

First course
45 deg
Second course
135 deg
First position latitude
42.36 deg
Second position latitude
43.66 deg
First position longitude
-71 deg
Second position longitude
-70.26 deg

You get

Run from the first position
145,044.023 m
Run from the second position
60,092.661 m
Crossing latitude
43.2763375°
Crossing longitude
-69.7365371°

Review: Not yet independently reviewed by a geodesist.

Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.1, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 22 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Constants this tool assumes

Values you do not enter, and where each comes from.

WGS 84 semi-major axis
6378137 m — Department of Defense World Geodetic System 1984
WGS 84 inverse flattening
298.257223563 — Department of Defense World Geodetic System 1984

Sources