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

Experimental: not yet fully verified. How results are checked

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; of the two crossings the one ahead of both positions is reported. 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
1 shown with the answer
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; of the two crossings the one ahead of both positions is reported. 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

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: 8 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Experimental means this tool has not yet met the stable bar: at least 20 golden vectors, differential tests, and an independent worked example.